pkgsrc-WIP-changes archive

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

gnunet: rc.d: move common command arguments into command_args



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Fri Mar 1 12:11:48 2019 +0000
Changeset:	5bbc859cdc1753c9d85a810e0d06460e3e98b70e

Modified Files:
	gnunet/files/gnunet.in

Log Message:
gnunet: rc.d: move common command arguments into command_args

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

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

diffstat:
 gnunet/files/gnunet.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diffs:
diff --git a/gnunet/files/gnunet.in b/gnunet/files/gnunet.in
index 6c39de6cda..9ef532a4d6 100755
--- a/gnunet/files/gnunet.in
+++ b/gnunet/files/gnunet.in
@@ -14,8 +14,9 @@ then
 fi
 
 name="gnunet"
-rcvar=$name
+rcvar=${name}
 command="@PREFIX@/bin/gnunet-arm"
+command_args="-c @PKG_SYSCONFDIR@/gnunet.conf"
 required_files="@PKG_SYSCONFDIR@/gnunet.conf"
 pidfile="@PKG_HOME@/${name}.pid"
 : ${gnunet_user:=@GNUNET_USER@}
@@ -50,14 +51,14 @@ gnunet_precmd()
 gnunet_start()
 {
 	@ECHO@ "Starting ${name}."
-	doit="@SU@ -m ${gnunet_user} -c '${command} ${command_args} -s -c @PKG_SYSCONFDIR@/gnunet.conf'"
+	doit="@SU@ -m ${gnunet_user} -c '${command} ${command_args} -s'"
 	eval $doit
 }
 
 gnunet_stop()
 {
 	@ECHO@ "Stopping ${name}."
-	doit="@SU@ -m ${gnunet_user} -c '${command} ${command_args} -e -c @PKG_SYSCONFDIR@/gnunet.conf'"
+	doit="@SU@ -m ${gnunet_user} -c '${command} ${command_args} -e'"
 	eval $doit
 	# kill `cat ${pidfile}` 2>/dev/null
 	sleep 1


Home | Main Index | Thread Index | Old Index