From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/symon/files/symux-init.d | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 net-analyzer/symon/files/symux-init.d (limited to 'net-analyzer/symon/files/symux-init.d') diff --git a/net-analyzer/symon/files/symux-init.d b/net-analyzer/symon/files/symux-init.d new file mode 100644 index 000000000000..452d4581b807 --- /dev/null +++ b/net-analyzer/symon/files/symux-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symux" + start-stop-daemon \ + --pidfile /run/symux.pid \ + --exec /usr/sbin/symux \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symux" + start-stop-daemon --start --exec /usr/sbin/symux + eend $? +} + +stop() { + ebegin "Stopping symux" + start-stop-daemon --stop --pidfile /run/symux.pid + eend $? +} -- cgit v1.2.3