mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
Create lstu.service
This commit is contained in:
parent
f2b2535158
commit
b1fb0ae939
1 changed files with 18 additions and 0 deletions
18
conf/lstu.service
Normal file
18
conf/lstu.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[Unit]
|
||||||
|
Description=URL Shortener
|
||||||
|
Documentation=https://git.framasoft.org/luc/lstu
|
||||||
|
Requires=network.target
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
User=www-data
|
||||||
|
RemainAfterExit=yes
|
||||||
|
WorkingDirectory=/var/www/lstu
|
||||||
|
PIDFile=/var/www/lstu/script/hypnotoad.pid
|
||||||
|
ExecStart=/usr/bin/carton exec hypnotoad script/lstu >> /var/log/lutim/production.log 2>&1
|
||||||
|
ExecStop=/usr/bin/carton exec hypnotoad -s script/lstu >> /var/log/lutim/production.log 2>&1
|
||||||
|
ExecReload=/usr/bin/carton exec hypnotoad script/lstu >> /var/log/lutim/production.log 2>&1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue