diff options
Diffstat (limited to 'misc/dnetc/files/dnetc.sh')
-rw-r--r-- | misc/dnetc/files/dnetc.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/dnetc/files/dnetc.sh b/misc/dnetc/files/dnetc.sh index 919e6f4c71c9..ed7c39e4fe6f 100644 --- a/misc/dnetc/files/dnetc.sh +++ b/misc/dnetc/files/dnetc.sh @@ -1,6 +1,7 @@ #!/bin/sh -dir="CHANGETHIS" +dir="%%BINDIR%%" +user="%%CLIENTUSER%%" case "$1" in start) @@ -26,10 +27,10 @@ start) fi echo -n " dnetc" - su -m dnetc -c "$dir/dnetc -quiet" 2>/dev/null >/dev/null & + su -m $user -c "$dir/dnetc -quiet" 2>/dev/null >/dev/null & ;; stop) - killall dnetc && echo -n " dnetc" + killall -u $user dnetc && echo -n " dnetc" ;; *) echo "Usage: `basename $0` {start|stop}" >&2 |