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

Integration with systemd #21

Open
nowox opened this issue Feb 13, 2019 · 1 comment
Open

Integration with systemd #21

nowox opened this issue Feb 13, 2019 · 1 comment

Comments

@nowox
Copy link

nowox commented Feb 13, 2019

I think it would be very nice to have an example on how to deploy a deamonocle daemon with systemd. Said differently, how to write a foo.service that works with daemonocle.

@nowox
Copy link
Author

nowox commented Feb 13, 2019

Well after some reading I think this is very straightforward:

[Unit]
SourcePath=/home/pi/daemon/daemon
Description=My Juicy Daemon
Before=multi-user.target

[Service]
Type=notify
PIDFile=/var/run/my-juicy-daemon.pid
Restart=no
ExecStart=/home/pi/daemon/daemon start
ExecStop=/home/pi/daemon/daemon stop
ExecReload=/home/pi/daemon/daemon reload

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

No branches or pull requests

2 participants