1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zeronet_ynh.git synced 2024-09-03 17:46:12 +02:00

service fix

This commit is contained in:
anmol 2020-11-09 22:00:01 +05:30
parent f2ec22de16
commit 497ab6eb32
3 changed files with 6 additions and 5 deletions

View file

@ -3,9 +3,10 @@ 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
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
ExecStart=/usr/bin/python3 ./zeronet.py --ui_port __PORT__ --ui_host __DOMAIN__ --fileserver_port __FS_PORT__ --data_dir __DATADIR__/data --log_dir __DATADIR__/log
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure

View file

@ -110,7 +110,7 @@ ynh_script_progression --message="Installing dependencies..."
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
pip3 install msgpack-python gevent
pip3 install msgpack-python gevent
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -141,7 +141,7 @@ ynh_add_nginx_config
ynh_script_progression --message="Configuring system user..."
# Create a system user
ynh_system_user_create --username=$app
ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
# SETUP SYSTEMD

View file

@ -49,7 +49,7 @@ ynh_remove_systemd_config
ynh_script_progression --message="Removing dependencies..."
# Remove metapackage and its dependencies
pip3 uninstall msgpack-python gevent
pip3 uninstall -y msgpack-python gevent
#=================================================
# REMOVE APP MAIN DIR