Created
April 8, 2018 06:07
-
-
Save 4noha/8c6125984cf45bf566730d9763e6a0e0 to your computer and use it in GitHub Desktop.
for systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=homehub | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/home/nokkii/works/homehub | |
| ExecStart=/usr/local/opt/rbenv/shims/ruby /home/nokkii/works/homehub/app.rb | |
| ExecStop=pkill -KILL -f "ruby app.rb" | |
| ExecReload=pkill -KILL -f "ruby app.rb" && /usr/local/opt/rbenv/shims/ruby /home/nokkii/works/homehub/app.rb | |
| TimeoutStopSec=5 | |
| StandardOutput=null | |
| User=nokkii | |
| Group=nokkii | |
| [Install] | |
| WantedBy = multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment