summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-smf-refresh
blob: f025687185532aabea943e9c965949a7c789c22b (plain)
1
2
3
4
5
6
7
8
9
10
if [ -n "$2" ]; then # only on upgrade
if [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then
  for s in #SERVICES#; do
    case `svcstatus $s` in
      disabled|temporary-disabled);;
      *) /usr/sbin/svcadm -v refresh $s || true;;
    esac
  done
fi
fi