Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd init script #39

Open
changwuf31 opened this issue Apr 10, 2017 · 3 comments
Open

systemd init script #39

changwuf31 opened this issue Apr 10, 2017 · 3 comments

Comments

@changwuf31
Copy link

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

Thank you

@klingtnet
Copy link

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
...

@changwuf31
Copy link
Author

@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

@klingtnet
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants