endless icon indicating copy to clipboard operation
endless copied to clipboard

systemd init script

Open changwuf31 opened this issue 8 years ago • 3 comments

Hi, how to create a systemd init script for application using endless package ?

Thank you

changwuf31 avatar Apr 10 '17 03:04 changwuf31

The process is the same as for any other systemd service script except that ExecReload should be defined. You can probably copy and paste the example from the manual:

[Service]
...
ExecReload=/bin/kill -HUP $MAINPID
...

klingtnet avatar Apr 25 '17 11:04 klingtnet

@klingtnet Thank you

However, I'm using capistrano style deployment, and ExecReload together with WorkingDir does not work well, it's a hit and miss, sometimes it works, many times don't

changwuf31 avatar Apr 26 '17 03:04 changwuf31

That's strange, systemd should keep track of the processes new PID and the working dir should also be inherited from the forked process. Unfortunately, I don't have any experience with Ruby/capistrano, so good luck.

klingtnet avatar Apr 26 '17 07:04 klingtnet