iRework OpenRC initscripts so they are symlinkable. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit b4cc2ac78ab2c2adfb2c9f5d484a85d6a62b24b4 /scm/geomyidae/commit/b4cc2ac78ab2c2adfb2c9f5d484a85d6a62b24b4.gph bitreich.org 70 1parent 6fcf2a6aff1c5c4cdf4ce029209b7bf624fbcd72 /scm/geomyidae/commit/6fcf2a6aff1c5c4cdf4ce029209b7bf624fbcd72.gph bitreich.org 70 hAuthor: parazyd URL:mailto:parazyd@dyne.org bitreich.org 70 iDate: Sun, 14 Jul 2019 14:56:04 +0200 Err bitreich.org 70 i Err bitreich.org 70 iRework OpenRC initscripts so they are symlinkable. Err bitreich.org 70 i Err bitreich.org 70 iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M rc.d/Gentoo.conf.d | 3 +-- Err bitreich.org 70 i M rc.d/Gentoo.init.d | 20 ++++++-------------- Err bitreich.org 70 i Err bitreich.org 70 i2 files changed, 7 insertions(+), 16 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/rc.d/Gentoo.conf.d b/rc.d/Gentoo.conf.d /scm/geomyidae/file/rc.d/Gentoo.conf.d.gph bitreich.org 70 i@@ -1,5 +1,4 @@ Err bitreich.org 70 i # Err bitreich.org 70 i # Parameters to be passed to geomyidae Err bitreich.org 70 i # Err bitreich.org 70 i-GEOMYIDAE_ARGS="-d -u gopherd -g gopherd -b /var/gopher -o 70 -l /var/log/geomyidae.log -h localhost" Err bitreich.org 70 i- Err bitreich.org 70 i+GEOMYIDAE_ARGS="-d -u gopherd -g gopherd -b /var/gopher -o 70 -l /var/log/${RC_SVCNAME}.log -h localhost" Err bitreich.org 70 1diff --git a/rc.d/Gentoo.init.d b/rc.d/Gentoo.init.d /scm/geomyidae/file/rc.d/Gentoo.init.d.gph bitreich.org 70 i@@ -1,17 +1,9 @@ Err bitreich.org 70 i #!/sbin/openrc-run Err bitreich.org 70 i-# Copyright 1999-2010 Gentoo Foundation Err bitreich.org 70 i+# Copyright 1999-2019 Gentoo Foundation Err bitreich.org 70 i # Distributed under the terms of the GNU General Public License v2 Err bitreich.org 70 i-# $Header: $ Err bitreich.org 70 i Err bitreich.org 70 i-start(){ Err bitreich.org 70 i- ebegin "Starting geomyidae" Err bitreich.org 70 i- [ -n "$GEOMYIDAE_ARGS" ] && GEOMYIDAE_ARGS="-- $GEOMYIDAE_ARGS" Err bitreich.org 70 i- start-stop-daemon -Sbm -p /run/geomyidae.pid -x /usr/sbin/geomyidae $GEOMYIDAE_ARGS Err bitreich.org 70 i- eend $? "Failed to start geomyidae" Err bitreich.org 70 i-} Err bitreich.org 70 i- Err bitreich.org 70 i-stop(){ Err bitreich.org 70 i- ebegin "Stopping geomyidae" Err bitreich.org 70 i- start-stop-daemon -K -p /var/run/geomyidae.pid Err bitreich.org 70 i- eend $? "Failed to stop geomyidae" Err bitreich.org 70 i-} Err bitreich.org 70 i+name="${RC_SVCNAME}" Err bitreich.org 70 i+command="/usr/bin/geomyidae" Err bitreich.org 70 i+pidfile="/run/${RC_SVCNAME}.pid" Err bitreich.org 70 i+command_args="${GEOMYIDAE_ARGS}" Err bitreich.org 70 i+command_background="yes" Err bitreich.org 70 .