mirror of
https://github.com/YunoHost-Apps/zeronet_ynh.git
synced 2024-09-03 17:46:12 +02:00
98d7ee352c
to value of yunohost domain the zeronet app is running on. Otherwise access would be denied with "invalid host forbidden".
14 lines
364 B
Text
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
|