I'm running 1.5.0 in a jail using FreeBSD 11.1 and 1.4.32 in a jail using FreeBSD 10.3
Neither one restarts gracefully from the dashboard - they both just exit.
A command line restart takes about 18s, which is sort of tolerable, but it means 18s of downtime, which is not the same as the zero downtime experience when running on Ubuntu.
Debug mode doesn't tell us much.
2018-10-30 01:50:19.859960 [DEBUG] Graceful Restart...
2018-10-30 01:50:19.860036 [INFO] Pass listener *:7080, copy fd 10 to 1001.
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52063] Start shutting down gracefully ...
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52061] Start shutting down gracefully ...
2018-10-30 01:50:19.860068 [NOTICE] [Child: 52064] Start shutting down gracefully ...
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52059] Start shutting down gracefully ...
2018-10-30 01:50:19.860274 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860180 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860313 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860143 [INFO] Pass listener *:80, copy fd 11 to 1000.
2018-10-30 01:50:19.860059 [NOTICE] [Child: 52060] Start shutting down gracefully ...
2018-10-30 01:50:19.860435 [NOTICE] [Child: 52063] Shut down successfully!
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52065] Start shutting down gracefully ...
2018-10-30 01:50:19.860070 [NOTICE] [Child: 52066] Start shutting down gracefully ...
2018-10-30 01:50:19.860490 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860421 [INFO] Stop listener *:7080.
2018-10-30 01:50:19.860393 [NOTICE] [Child: 52064] Shut down successfully!
2018-10-30 01:50:19.860679 [NOTICE] [Child: 52060] Shut down successfully!
2018-10-30 01:50:19.860233 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860533 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860608 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860823 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860753 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860903 [NOTICE] [Child: 52066] Shut down successfully!
2018-10-30 01:50:19.860842 [NOTICE] [Child: 52061] Shut down successfully!
2018-10-30 01:50:19.860933 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860961 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860722 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861095 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.861128 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860049 [NOTICE] [Child: 52062] Start shutting down gracefully ...
2018-10-30 01:50:19.861255 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860996 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861374 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.861323 [NOTICE] [Child: 52062] Shut down successfully!
2018-10-30 01:50:19.861466 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861584 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860569 [INFO] Stop listener *:80.
2018-10-30 01:50:19.862473 [NOTICE] [Child: 52065] Shut down successfully!
2018-10-30 01:50:19.862545 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.862615 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.863474 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52063 !
2018-10-30 01:50:19.863772 [NOTICE] [AutoRestarter] child process with pid=52063 exited with status=0!
2018-10-30 01:50:19.863833 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52060 !
2018-10-30 01:50:19.864002 [NOTICE] [AutoRestarter] child process with pid=52060 exited with status=0!
2018-10-30 01:50:19.864037 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52066 !
2018-10-30 01:50:19.864197 [NOTICE] [AutoRestarter] child process with pid=52066 exited with status=0!
2018-10-30 01:50:19.864229 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52061 !
2018-10-30 01:50:19.864479 [NOTICE] [AutoRestarter] child process with pid=52061 exited with status=0!
2018-10-30 01:50:19.864514 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52064 !
2018-10-30 01:50:19.864882 [NOTICE] [AutoRestarter] child process with pid=52064 exited with status=0!
2018-10-30 01:50:19.864917 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52065 !
2018-10-30 01:50:19.880116 [NOTICE] [AutoRestarter] child process with pid=52065 exited with status=0!
2018-10-30 01:50:19.880172 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52062 !
2018-10-30 01:50:19.987193 [NOTICE] [AutoRestarter] child process with pid=52062 exited with status=0!
2018-10-30 01:50:28.209034 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52059 !
2018-10-30 01:50:28.209111 [DEBUG] [AutoRestater] Clean up child process with pid: 52192
2018-10-30 01:50:28.316182 [NOTICE] [AutoRestarter] child process with pid=52059 exited with status=0!
2018-10-30 01:50:28.316225 [NOTICE] [PID:52031] Server Stopped!
^C
root@vws8:/usr/local/lsws/logs # ps -ax | grep open
52242 0 R+J 0:00.00 grep open
root@vws8:/usr/local/lsws/logs #
Hints on where to look at this would be appreciated.
I can give you root access to the jail if needed.
I have not tested this outside of a jail, as I didn't have a raw server to install it on.
Danny
Neither one restarts gracefully from the dashboard - they both just exit.
A command line restart takes about 18s, which is sort of tolerable, but it means 18s of downtime, which is not the same as the zero downtime experience when running on Ubuntu.
Debug mode doesn't tell us much.
2018-10-30 01:50:19.859960 [DEBUG] Graceful Restart...
2018-10-30 01:50:19.860036 [INFO] Pass listener *:7080, copy fd 10 to 1001.
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52063] Start shutting down gracefully ...
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52061] Start shutting down gracefully ...
2018-10-30 01:50:19.860068 [NOTICE] [Child: 52064] Start shutting down gracefully ...
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52059] Start shutting down gracefully ...
2018-10-30 01:50:19.860274 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860180 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860313 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860143 [INFO] Pass listener *:80, copy fd 11 to 1000.
2018-10-30 01:50:19.860059 [NOTICE] [Child: 52060] Start shutting down gracefully ...
2018-10-30 01:50:19.860435 [NOTICE] [Child: 52063] Shut down successfully!
2018-10-30 01:50:19.860050 [NOTICE] [Child: 52065] Start shutting down gracefully ...
2018-10-30 01:50:19.860070 [NOTICE] [Child: 52066] Start shutting down gracefully ...
2018-10-30 01:50:19.860490 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860421 [INFO] Stop listener *:7080.
2018-10-30 01:50:19.860393 [NOTICE] [Child: 52064] Shut down successfully!
2018-10-30 01:50:19.860679 [NOTICE] [Child: 52060] Shut down successfully!
2018-10-30 01:50:19.860233 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860533 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860608 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860823 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860753 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860903 [NOTICE] [Child: 52066] Shut down successfully!
2018-10-30 01:50:19.860842 [NOTICE] [Child: 52061] Shut down successfully!
2018-10-30 01:50:19.860933 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860961 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.860722 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861095 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.861128 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860049 [NOTICE] [Child: 52062] Start shutting down gracefully ...
2018-10-30 01:50:19.861255 [INFO] Stop listener *:80.
2018-10-30 01:50:19.860996 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861374 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.861323 [NOTICE] [Child: 52062] Shut down successfully!
2018-10-30 01:50:19.861466 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.861584 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.860569 [INFO] Stop listener *:80.
2018-10-30 01:50:19.862473 [NOTICE] [Child: 52065] Shut down successfully!
2018-10-30 01:50:19.862545 [NOTICE] [AdminPHP] stop worker processes
2018-10-30 01:50:19.862615 [NOTICE] [lsphp] stop worker processes
2018-10-30 01:50:19.863474 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52063 !
2018-10-30 01:50:19.863772 [NOTICE] [AutoRestarter] child process with pid=52063 exited with status=0!
2018-10-30 01:50:19.863833 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52060 !
2018-10-30 01:50:19.864002 [NOTICE] [AutoRestarter] child process with pid=52060 exited with status=0!
2018-10-30 01:50:19.864037 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52066 !
2018-10-30 01:50:19.864197 [NOTICE] [AutoRestarter] child process with pid=52066 exited with status=0!
2018-10-30 01:50:19.864229 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52061 !
2018-10-30 01:50:19.864479 [NOTICE] [AutoRestarter] child process with pid=52061 exited with status=0!
2018-10-30 01:50:19.864514 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52064 !
2018-10-30 01:50:19.864882 [NOTICE] [AutoRestarter] child process with pid=52064 exited with status=0!
2018-10-30 01:50:19.864917 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52065 !
2018-10-30 01:50:19.880116 [NOTICE] [AutoRestarter] child process with pid=52065 exited with status=0!
2018-10-30 01:50:19.880172 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52062 !
2018-10-30 01:50:19.987193 [NOTICE] [AutoRestarter] child process with pid=52062 exited with status=0!
2018-10-30 01:50:28.209034 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 52059 !
2018-10-30 01:50:28.209111 [DEBUG] [AutoRestater] Clean up child process with pid: 52192
2018-10-30 01:50:28.316182 [NOTICE] [AutoRestarter] child process with pid=52059 exited with status=0!
2018-10-30 01:50:28.316225 [NOTICE] [PID:52031] Server Stopped!
^C
root@vws8:/usr/local/lsws/logs # ps -ax | grep open
52242 0 R+J 0:00.00 grep open
root@vws8:/usr/local/lsws/logs #
Hints on where to look at this would be appreciated.
I can give you root access to the jail if needed.
I have not tested this outside of a jail, as I didn't have a raw server to install it on.
Danny