From 721461a57367529757ebe8c59fbb6166dec364c1 Mon Sep 17 00:00:00 2001 From: dkoukoul Date: Fri, 17 May 2024 13:33:19 +0300 Subject: [PATCH] proxy in service --- conf/systemd.service | 1 + scripts/install | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index c4357c4..34167e7 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,6 +7,7 @@ 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' KillMode=process Restart=no diff --git a/scripts/install b/scripts/install index d342296..897b50a 100755 --- a/scripts/install +++ b/scripts/install @@ -91,13 +91,6 @@ ynh_script_progression --message="Starting $app's systemd service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" -#================================================= -# LAUNCH CJDNS PROXY SERVER -#================================================= -ynh_script_progression --message="Launching cjdns proxy server..." --weight=1 - -$install_dir/cjdns-proxy-server - #================================================= # END OF SCRIPT #=================================================