diff options
Diffstat (limited to 'autoscripts/prerm-smf-stop')
| -rw-r--r-- | autoscripts/prerm-smf-stop | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autoscripts/prerm-smf-stop b/autoscripts/prerm-smf-stop new file mode 100644 index 0000000..bdbeb0c --- /dev/null +++ b/autoscripts/prerm-smf-stop @@ -0,0 +1,12 @@ +if [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then + if [ "$1" = "remove" ]; then + temp="" + else + temp="-t" + fi + for s in #SERVICES#; do + case `svcstatus $s` in + online|offline) /usr/sbin/svcadm -v disable $temp -s $s;; + esac + done +fi |
