diff options
Diffstat (limited to 'init.d/s6-svscan.in')
-rw-r--r-- | init.d/s6-svscan.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/init.d/s6-svscan.in b/init.d/s6-svscan.in index 18ed0ad0..917e5c83 100644 --- a/init.d/s6-svscan.in +++ b/init.d/s6-svscan.in @@ -21,9 +21,13 @@ depend() start_pre() { - einfo "Creating s6 scan directory" - checkpath -d -m 0755 "$RC_SVCDIR"/s6-scan - return $? + if [ ! -e "$command" ]; then + eerror "$command is missing (please install s6)" + else + einfo "Creating s6 scan directory" + checkpath -d -m 0755 "$RC_SVCDIR"/s6-scan + fi + return } stop_post() |