add kluk systemd service
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
Christophe Robillard 2025-09-27 13:25:02 +00:00
parent 3e451fcd19
commit 20b2d3ce4a

18
kluk.service Normal file
View 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