diff options
Diffstat (limited to 'news/dnews')
-rw-r--r-- | news/dnews/files/dnews.sh | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/news/dnews/files/dnews.sh b/news/dnews/files/dnews.sh index b714714..0a478e7 100644 --- a/news/dnews/files/dnews.sh +++ b/news/dnews/files/dnews.sh @@ -2,11 +2,23 @@ # start dnews if it's really there ... usually in /usr/local ... -[ -x /usr/local/lib/dnews/dnews_start ] \ - && /usr/local/lib/dnews/dnews_start > /dev/null 2>&1 & +case $1 in +start) + [ -x /usr/local/lib/dnews/dnews_start ] \ + && /usr/local/lib/dnews/dnews_start > /dev/null 2>&1 & -# dnews started successfully if exit status = 0 + # dnews started successfully if exit status = 0 -if [ $? -eq 0 ]; then - echo -n ' dnews' -fi + if [ $? -eq 0 ]; then + echo -n ' dnews' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |