add kluk systemd service
This commit is contained in:
parent
3e451fcd19
commit
20b2d3ce4a
1 changed files with 18 additions and 0 deletions
18
kluk.service
Normal file
18
kluk.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Kluk Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=mood
|
||||
WorkingDirectory=/opt/mood/app.kluk.fr
|
||||
ExecStart=/opt/mood/.rbenv/shims/foreman start
|
||||
Environment="RACK_ENV=production"
|
||||
Environment="PATH=/opt/mood/.rbenv/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin"
|
||||
TimeoutSec=30
|
||||
RestartSec=15s
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
Add table
Reference in a new issue