1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cjdns_ynh.git synced 2024-09-03 18:16:29 +02:00

remove nobackground and fix service restarting ability

This commit is contained in:
dkoukoul 2024-05-31 16:55:49 +03:00
parent 87f7163bc2
commit 441539fcfd
2 changed files with 3 additions and 3 deletions

View file

@ -6,8 +6,9 @@ After=network.target cjdns.service
User=root
Group=root
WorkingDirectory=__INSTALL_DIR__/
ExecStart=/bin/bash -c '__INSTALL_DIR__/cjdroute < __INSTALL_DIR__/cjdroute.conf'
ExecStartPost=/bin/bash -c 'sleep 3 && __INSTALL_DIR__/cjdns-proxy-server &'
ExecStartPre=/bin/bash -c '__INSTALL_DIR__/cjdroute < __INSTALL_DIR__/cjdroute.conf'
ExecStart=/bin/bash -c 'sleep 3 && __INSTALL_DIR__/cjdns-proxy-server'
ExecStop=/bin/bash -c 'killall cjdroute'
KillMode=process
Restart=no

View file

@ -32,7 +32,6 @@ $install_dir/cjdroute --genconf | $install_dir/cjdroute --cleanconf > $install_d
jq '.security[0].setuser = 0' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
jq '.security[0].seccomp = 0' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
jq '.noBackground = 1' $install_dir/cjdroute.conf > $install_dir/cjdroute.conf.tmp && mv $install_dir/cjdroute.conf.tmp $install_dir/cjdroute.conf
#=================================================
# UPGRADE PEERS