summaryrefslogtreecommitdiff
path: root/community/gnunet/gnunet.rc
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnunet/gnunet.rc')
-rw-r--r--community/gnunet/gnunet.rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/community/gnunet/gnunet.rc b/community/gnunet/gnunet.rc
index 34c7c5fe1..30ac4d2ad 100644
--- a/community/gnunet/gnunet.rc
+++ b/community/gnunet/gnunet.rc
@@ -6,11 +6,11 @@ GNUNETD_USER=nobody
. /etc/rc.conf
. /etc/rc.d/functions
-PID=$(pidof -o %PPID /usr/bin/gnunetd)
+PID=$(pidof -o %PPID /usr/bin/gnunet-arm)
case "$1" in
start)
- stat_busy "Starting gnunetd"
- [ -z "$PID" ] && /usr/bin/gnunetd -c /etc/gnunetd.conf -u $GNUNETD_USER 1>/dev/null 2>/dev/null &
+ stat_busy "Starting gnunet services"
+ [ -z "$PID" ] && su -c '/usr/bin/gnunet-arm -s -c /etc/gnunetd.conf' - $GNUNETD_USER 1>/dev/null 2>/dev/null &
if [ $? -gt 0 ]; then
stat_fail
else
@@ -19,7 +19,7 @@ case "$1" in
fi
;;
stop)
- stat_busy "Stopping gnunetd"
+ stat_busy "Stopping gnunet services"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail