diff options
author | Bill Nottingham <notting@redhat.com> | 1999-04-07 16:56:56 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-04-07 16:56:56 +0000 |
commit | 3c627b854461b0714479ca421a6e25aace41f645 (patch) | |
tree | 4751a5b271a321e1221028284132aa27dd5cbb97 /rc.d | |
parent | d6213696823a7e52a135a154832007e23734e33b (diff) | |
download | initscripts-3c627b854461b0714479ca421a6e25aace41f645.tar initscripts-3c627b854461b0714479ca421a6e25aace41f645.tar.gz initscripts-3c627b854461b0714479ca421a6e25aace41f645.tar.bz2 initscripts-3c627b854461b0714479ca421a6e25aace41f645.tar.xz initscripts-3c627b854461b0714479ca421a6e25aace41f645.zip |
*** empty log message ***
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 6d6bb4d5..222cdbe7 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -43,12 +43,14 @@ fi # A function to start a program. daemon() { # Test syntax. + gotbase= case $1 in '') echo '$0: Usage: daemon [+/-nicelevel] {program}' return 1;; --check) shift base=$1 + gotbase="yes" shift;; -*|+*) nicelevel=$1 @@ -57,7 +59,7 @@ daemon() { esac # Save basename. - [ -z $base ] && base=`basename $1` + [ -z $gotbase ] && base=`basename $1` # See if it's already running. pid=`pidofproc $base` |