mirror of
https://github.com/YunoHost-Apps/zeronet_ynh.git
synced 2024-09-03 17:46:12 +02:00
15 lines
403 B
SYSTEMD
15 lines
403 B
SYSTEMD
|
[Unit]
|
||
|
Description=__APP__ service
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=noreply
|
||
|
ExecStart=/usr/bin/python3 __FINALPATH__/zeronet.py --ui_port __PORT__ --ui_host __DOMAIN__ --fileserver_port __FS_PORT__ --data_dir __DATADIR__/data --log_dir __DATADIR__/log
|
||
|
WorkingDirectory=/var/www/ZeroNet-py3
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
KillMode=process
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|