X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Fsolaris%2Fbacula-dir.in;fp=bacula%2Fplatforms%2Fsolaris%2Fbacula-dir.in;h=05fc64cca81c20342c04a21928600ac406af5e4e;hb=7c9e7cce294af5394516d46f4938290f7a6a00a1;hp=84df47ecfaff14bc2204ba6d0f3085ef646f8641;hpb=2344e14e3236ebf80d45650fb80dd3c5906f8f2b;p=bacula%2Fbacula diff --git a/bacula/platforms/solaris/bacula-dir.in b/bacula/platforms/solaris/bacula-dir.in index 84df47ecfa..05fc64cca8 100755 --- a/bacula/platforms/solaris/bacula-dir.in +++ b/bacula/platforms/solaris/bacula-dir.in @@ -1,5 +1,8 @@ #!/bin/sh # +# Copyright (C) Kern Sibbald 2000-2015 +# License: BSD 2-Clause +# # bacula This shell script takes care of starting and stopping # the bacula Director daemon # @@ -15,12 +18,12 @@ DIR_OPTIONS='' case "$1" in start) if [ ! -z "${DIR_USER}" ]; then - [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-u ${DIR_USER}" || \ - DIR_OPTIONS="${DIR_OPTIONS} -u ${DIR_USER}" + [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-u ${DIR_USER}" || \ + DIR_OPTIONS="${DIR_OPTIONS} -u ${DIR_USER}" fi if [ ! -z "${DIR_GROUP}" ]; then - [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-g ${DIR_GROUP}" || \ - DIR_OPTIONS="${DIR_OPTIONS} -g ${DIR_GROUP}" + [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-g ${DIR_GROUP}" || \ + DIR_OPTIONS="${DIR_OPTIONS} -g ${DIR_GROUP}" fi echo "Starting the Bacula Director: " @@ -29,16 +32,16 @@ case "$1" in stop) echo "Stopping the Director daemon: " if [ -x /usr/bin/zonename ]; then - case `/usr/bin/zonename` in - global) - pkill -z global -x bacula-dir - ;; - *) - pkill -x bacula-dir - ;; - esac + case `/usr/bin/zonename` in + global) + pkill -z global -x bacula-dir + ;; + *) + pkill -x bacula-dir + ;; + esac else - pkill -x bacula-dir + pkill -x bacula-dir fi ;; restart)