Add --exists and --resolve to rc-service.

This commit is contained in:
Roy Marples
2008-03-26 08:08:47 +00:00
parent e30ea10e6c
commit be1f9b0a93
3 changed files with 34 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ start()
done
# If we have an init script for this service, continue
rc-service --list | grep -q "${service}" && continue
rc-service --exists "${service}" && continue
# Ensure that the users rc.conf will start us - ignore the defaults
eval enabled=\$${svc##*/}_enable