1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00
lufi_ynh/conf/systemd.service
Augustin Trancart 22b6072178 Remove RemainAfterExit in systemd unit
RemainAfterExit means that the service should be considered active even
when all its children has terminated. This is not what we want here as
the child process created by carton is a daemon process and not expected
to terminate.

Also, on stretch, the return code of the child process has no influence
on the status of the service if RemainAfterExit is set.
2020-04-26 21:21:54 +02:00

18 lines
495 B
Desktop File

[Unit]
Description=Image hosting and sharing service
Documentation=https://framagit.org/luc/lufi/wikis/home
Requires=network.target
After=network.target
[Service]
Type=forking
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
PIDFile=__FINALPATH__script/hypnotoad.pid
ExecStart=/usr/local/bin/carton exec hypnotoad script/lufi
ExecStop=/usr/local/bin/carton exec hypnotoad -s script/lufi
ExecReload=/usr/local/bin/carton exec hypnotoad script/lufi
[Install]
WantedBy=multi-user.target