pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

miniircd: Avoid to create pidfile in rc.d script



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Jun 29 01:28:17 2019 +0200
Changeset:	04178e1b029bbe3326a7c1a4632a2e2c144c7ce4

Modified Files:
	miniircd/files/miniircd.sh

Log Message:
miniircd: Avoid to create pidfile in rc.d script

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=04178e1b029bbe3326a7c1a4632a2e2c144c7ce4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 miniircd/files/miniircd.sh | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diffs:
diff --git a/miniircd/files/miniircd.sh b/miniircd/files/miniircd.sh
index 536dac5e54..4a4c85ebc2 100755
--- a/miniircd/files/miniircd.sh
+++ b/miniircd/files/miniircd.sh
@@ -11,27 +11,10 @@ name="miniircd"
 rcvar=$name
 command="@PREFIX@/sbin/miniircd"
 command_interpreter="@PYTHONBIN@"
-pidfile="@VARBASE@/run/${name}/pid"
-command_args="-d --pid-file=${pidfile}"
-start_precmd="miniircd_precmd"
-stop_postcmd="miniircd_postcmd"
+command_args="-d"
 
 miniircd_flags=${miniircd_flags-"--setuid @MINIIRCD_USER@:@MINIIRCD_GROUP@"}
 
-miniircd_precmd()
-{
-	if [ ! -d "@VARBASE@/run/${name}" ]; then
-		@MKDIR@ "@VARBASE@/run/${name}"
-		@CHMOD@ 0700 "@VARBASE@/run/${name}"
-		@CHOWN@ @MINIIRCD_USER@:@MINIIRCD_GROUP@ "@VARBASE@/run/${name}"
-	fi
-}
-
-miniircd_postcmd()
-{
-	@RM@ "${pidfile}"
-}
-
 if [ -f /etc/rc.subr ]; then
 	load_rc_config $name
 	run_rc_command "$1"


Home | Main Index | Thread Index | Old Index