Fix broken startup script.
PR: 23810 Submitted by: Martin Kammerhofer <mkamm@gmx.net>
This commit is contained in:
parent
c87a1c7222
commit
eac04bb2ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36335
1 changed files with 14 additions and 4 deletions
|
@ -1,14 +1,24 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# $CVSHeader$
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
test -d %%JDIR%% -a -x %%PREFIX%%/sbin/junkbuster -a -f %%JDIR%%/configfile || exit 1
|
if [ -d %%JDIR%% \
|
||||||
|
-a -x %%PREFIX%%/sbin/junkbuster-zlib \
|
||||||
|
-a -f %%JDIR%%/configfile ]; then
|
||||||
|
: seems OK
|
||||||
|
else
|
||||||
|
echo >&2 "$0: missing files!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd %%JDIR%%
|
cd %%JDIR%%
|
||||||
su -m nobody -c "%%PREFIX%%/sbin/junkbuster configfile &"
|
su -m nobody -c "%%PREFIX%%/sbin/junkbuster-zlib configfile &" \
|
||||||
echo -n " junkbuster"
|
>/dev/null \
|
||||||
|
&& echo -n " junkbuster" \
|
||||||
|
|| echo " junkbuster FAILED TO START"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
killall junkbuster && echo -n " junkbuster"
|
killall junkbuster-zlib && echo -n " junkbuster"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: `basename $0` {start|stop}" >&2
|
echo "Usage: `basename $0` {start|stop}" >&2
|
||||||
|
|
Loading…
Reference in a new issue