pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
geomyidae: Adjust rc.d to not use any pidfile
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Fri Aug 10 11:42:14 2018 +0200
Changeset: 300a4c08643b0dfb1d7b9df0329fe27e53b24bb3
Modified Files:
geomyidae/files/geomyidae.sh
Log Message:
geomyidae: Adjust rc.d to not use any pidfile
Previously pidfile variable was defined despite geomyidae does not write to any
pidfile... Delete it and also delete the start_precmd() and geomyidae_precmd()
that are no more needed.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=300a4c08643b0dfb1d7b9df0329fe27e53b24bb3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
geomyidae/files/geomyidae.sh | 10 ----------
1 file changed, 10 deletions(-)
diffs:
diff --git a/geomyidae/files/geomyidae.sh b/geomyidae/files/geomyidae.sh
index 35291a7fc3..0b7eb5c2ce 100755
--- a/geomyidae/files/geomyidae.sh
+++ b/geomyidae/files/geomyidae.sh
@@ -10,8 +10,6 @@ fi
name="geomyidae"
rcvar=$name
command="@PREFIX@/sbin/geomyidae"
-pidfile="@VARBASE@/run/${name}/pid"
-start_precmd="geomyidae_precmd"
_geomyidae_user="@GEOMYIDAE_USER@"
_geomyidae_group="@GEOMYIDAE_GROUP@"
@@ -20,14 +18,6 @@ _geomyidae_rootdir="@GEOMYIDAE_ROOTDIR@"
command_args="-u \"${_geomyidae_user}\" -g \"${_geomyidae_group}\" -b \"${_geomyidae_rootdir}\""
required_dirs="${_geomyidae_rootdir}"
-geomyidae_precmd()
-{
- if [ ! -d "@VARBASE@/run/${name}" ]; then
- @MKDIR@ "@VARBASE@/run/${name}"
- @CHMOD@ 0700 "@VARBASE@/run/${name}"
- fi
-}
-
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index