1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zeronet_ynh.git synced 2024-09-03 17:46:12 +02:00
zeronet_ynh/conf/systemd.service.template
whypsi 98d7ee352c Sets zeronet --ui_host start parameter
to value of yunohost domain the zeronet app is running on.
Otherwise access would be denied with "invalid host forbidden".
2017-07-27 13:42:19 +00:00

14 lines
364 B
Text

[Unit]
Description=ZeroNet for __USER__
After=network.target
[Service]
User=__USER__
ExecStart=/usr/bin/python2 ./zeronet.py --ui_port __UI_PORT__ --ui_host __UI_HOST__ --data_dir __DATA_DIR__ --log_dir __LOG_DIR__
WorkingDirectory=__WORKING_DIRECTORY__
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target