From c049cf8047b4e35e832d7c8cc312ebb4c5e2d826 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 22 Feb 2023 17:05:31 +0100 Subject: [PATCH] chore: move openwrt init script to emissary-firmware project --- misc/packaging/openwrt/emissary-agent.init.sh | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 misc/packaging/openwrt/emissary-agent.init.sh diff --git a/misc/packaging/openwrt/emissary-agent.init.sh b/misc/packaging/openwrt/emissary-agent.init.sh deleted file mode 100644 index 9299bd1..0000000 --- a/misc/packaging/openwrt/emissary-agent.init.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh /etc/rc.common - -USE_PROCD=1 -START=50 -STOP=50 - -start_service() { - local config_file="/etc/emissary/agent.yml" - procd_open_instance emissary-agent - procd_set_param command /usr/bin/emissary - procd_append_param command --workdir /usr/share/emissary - procd_append_param command --config "$config_file" - procd_append_param command agent run - procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5} - procd_set_param file "$config_file" - procd_set_param stdout 1 - procd_set_param stderr 1 - procd_set_param pidfile /var/run/emissary-agent.pid - procd_close_instance -} \ No newline at end of file