1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/news/dnews/files/dnews.sh
Ying-Chieh Liao f0708dcb07 correct path in startup script
PR:		37931
Submitted by:	Mark Russell <ports@mark.net.au>
2002-09-18 18:12:15 +00:00

25 lines
376 B
Bash

#!/bin/sh
# start dnews if it's really there ... usually in /usr/local ...
case $1 in
start)
[ -x /usr/local/dnews/dnews_start ] \
&& /usr/local/dnews/dnews_start.sh > /dev/null 2>&1 &
# dnews started successfully if exit status = 0
if [ $? -eq 0 ]; then
echo -n ' dnews'
fi
;;
stop)
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0