mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
22b6072178
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.
18 lines
495 B
Desktop File
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
|