summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-12-11 09:44:08 +0100
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2018-12-17 20:18:38 -0800
commit97f03506d9dd795537f2af986aab17ea2f8e5d5a (patch)
tree178fcb92caf11b986facb86aaef7b4d6fcb9e270 /net-misc/igmpproxy/files
parentx11-misc/xwallpaper: bump to 0.4.1 (diff)
downloadgentoo-97f03506d9dd795537f2af986aab17ea2f8e5d5a.tar.gz
gentoo-97f03506d9dd795537f2af986aab17ea2f8e5d5a.tar.bz2
gentoo-97f03506d9dd795537f2af986aab17ea2f8e5d5a.zip
net-misc/igmpproxy: update pidfile handling
Since IGMPProxy does not create a pid file by itself, the daemon needs to be started in foreground, to keep tracking of the correct pidfile with openrc and put it background. Closes: https://bugs.gentoo.org/672842 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/10610 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'net-misc/igmpproxy/files')
-rw-r--r--net-misc/igmpproxy/files/igmpproxy.initd-r112
1 files changed, 12 insertions, 0 deletions
diff --git a/net-misc/igmpproxy/files/igmpproxy.initd-r1 b/net-misc/igmpproxy/files/igmpproxy.initd-r1
new file mode 100644
index 000000000000..c5f9e56536ad
--- /dev/null
+++ b/net-misc/igmpproxy/files/igmpproxy.initd-r1
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+config="/etc/${RC_SVCNAME}.conf"
+name="IGMPproxy"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+command="/usr/sbin/igmpproxy"
+command_args="${IGMPPROXY_OPTS} -n ${config}"
+command_background="true"
+required_files="${config}"