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