commit f4302a23294447764096dbe4ad39bcd67dfe53b6 parent 8cf862822a3138e0e80e24af198d5a0bab6a8989 Author: Christoph Lohmann <20h@r-36.net> Date: Fri, 25 Nov 2016 16:05:24 +0100 Update the gentoo init scripts to openrc-run and fix them. Diffstat:
rc.d/Gentoo.conf.d | | | 2 | +- |
rc.d/Gentoo.init.d | | | 6 | +++--- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/rc.d/Gentoo.conf.d b/rc.d/Gentoo.conf.d @@ -1,5 +1,5 @@ # # Parameters to be passed to geomyidae # -GEOMYIDAE_ARGS="-u gopherd -g gopherd -b /var/gopher -o 70 -l /var/log/geomyidae.log -h localhost" +GEOMYIDAE_ARGS="-d -u gopherd -g gopherd -b /var/gopher -o 70 -l /var/log/geomyidae.log -h localhost" diff --git a/rc.d/Gentoo.init.d b/rc.d/Gentoo.init.d @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -6,12 +6,12 @@ start(){ ebegin "Starting geomyidae" [ -n "$GEOMYIDAE_ARGS" ] && GEOMYIDAE_ARGS="-- $GEOMYIDAE_ARGS" - start-stop-daemon --start --pidfile /var/run/geomyidae.pid --exec /usr/sbin/geomyidae $GEOMYIDAE_ARGS + start-stop-daemon -Sb -p /var/run/geomyidae.pid -x /usr/sbin/geomyidae $GEOMYIDAE_ARGS eend $? "Failed to start geomyidae" } stop(){ ebegin "Stopping geomyidae" - start-stop-daemon --stop --pidfile /var/run/geomyidae.pid + start-stop-daemon -S -p /var/run/geomyidae.pid eend $? "Failed to stop geomyidae" }