aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index f22f4941..6d6bb4d5 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -46,13 +46,18 @@ daemon() {
case $1 in
'') echo '$0: Usage: daemon [+/-nicelevel] {program}'
return 1;;
+ --check)
+ shift
+ base=$1
+ shift;;
+
-*|+*) nicelevel=$1
shift;;
*) nicelevel=0;;
esac
# Save basename.
- base=`basename $1`
+ [ -z $base ] && base=`basename $1`
# See if it's already running.
pid=`pidofproc $base`