diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-04 16:40:20 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-04 16:45:26 +0100 |
commit | 0d4723f16355b1e4168b3e66605c95572e877bd5 (patch) | |
tree | 496cdf4e45f7f2f6d5bea5508541767160571ac7 /testing/burp | |
parent | f817cba92aec20658a792e9aeaa02a0489c667e8 (diff) | |
download | aports-0d4723f16355b1e4168b3e66605c95572e877bd5.tar.bz2 aports-0d4723f16355b1e4168b3e66605c95572e877bd5.tar.xz |
testing/burp: fix init script, use standard cfgfile variable
Diffstat (limited to 'testing/burp')
-rw-r--r-- | testing/burp/APKBUILD | 2 | ||||
-rw-r--r-- | testing/burp/burp.init | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/testing/burp/APKBUILD b/testing/burp/APKBUILD index f79a331e2b..a55f107f07 100644 --- a/testing/burp/APKBUILD +++ b/testing/burp/APKBUILD @@ -94,4 +94,4 @@ server() { } sha512sums="8a6f8a97ee1ccaef68897be1a667b4320767718dcc7697fc16549adbc207d1c36c721df43434df3add65868d0a310cfe379432272514085125887b8257b13f22 2.1.30.zip -b3354c72c3156ce40620c4c8138195182cf431bad67e4aa4a40c1fe3f6fcdc1aff0294f85c892e616dc5e5fd7202a741172b457bef34314f70fbbf2367e35cda burp.init" +13761c30315d1c647906b91efdc730ae573c3598b7429acc77f5d9e6b31458307b2553e1ef1b317a84c14205a2262af3d896e2674b3524b99cb5b463756a712b burp.init" diff --git a/testing/burp/burp.init b/testing/burp/burp.init index 3f43d14846..4421b4e01d 100644 --- a/testing/burp/burp.init +++ b/testing/burp/burp.init @@ -1,31 +1,31 @@ #!/sbin/openrc-run -BURP_CONFIG="/etc/burp/burp-server.conf" +extra_started_commands="reload mon" description="Burp is a network backup and restore program" +description_reload="Reloads configuration" +description_mon="Displays status monitor" + +cfgfile="/etc/burp/burp-server.conf" command="/usr/bin/burp" -command_args="-c ${BURP_CONFIG} -F" +command_args="-c $cfgfile -F ${command_args:-}" command_background="yes" pidfile="/run/burp.pid" start_stop_daemon_arg="--wait 500" -extra_started_commands="reload mon" -description_reload="Reloads configuration" -description_mon="Displays status monitor" - depend() { - need localmount - after bootmisc - use net + need localmount + after bootmisc + use net } reload() { - ebegin "Reloading ${SVCNAME} configuration" - start-stop-daemon --exec ${command} --signal HUP - eend $? + ebegin "Reloading $RC_SVCNAME configuration" + start-stop-daemon --exec $command --signal HUP + eend $? } mon() { - "${command}" -c "${BURP_CONFIG}" -a S -}
\ No newline at end of file + $command -c "$cfgfile" -a S +} |