summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-smf-stop-before-remove
blob: 5b4324a908666b644ca554c99b01afa8d7b7666a (plain)
1
2
3
4
5
6
7
8
9
10
if [ "$1" = remove ]; then
if [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then
  for s in #SERVICES#; do
    case `svcstatus $s` in
      disabled);;
      *) /usr/sbin/svcadm -v disable -s $s;;
    esac
  done
fi
fi