blob: 244b0987d518475e4ecfe7bedd535ac3f4057129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|