mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
f0708dcb07
PR: 37931 Submitted by: Mark Russell <ports@mark.net.au>
25 lines
376 B
Bash
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
|