fmri=svc:/system/system-log:rsyslog if [ "$1" = configure ]; then state=`svcstatus $fmri` case "$state" in online) # Restart only on upgrades. # On new install the service will start automatically if [ -n "$2" ]; then svcadm -v restart $fmri || true fi ;; maintenance) svcadm -v clear $fmri || true;; offline) svcadm -v refresh $fmri || true;; esac fi