git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@15664
8c455092-636d-4788-adf5-
e71def0336e8
echo 'not running' && exit 1
;;
+ condrestart)
+ if check_status; then
+ $0 restart
+ RETVAL=$?
+ else
+ RETVAL=0
+ fi
+ ;;
+
*)
echo "Usage: $0 {start|stop|restart|status}"
RETVAL=1
%post
chkconfig --add fprobe-ulog
-chkconfig fprobe-ulog on
if [ "$PL_BOOTCD" != "1" ] ; then
- service fprobe-ulog restart
- fi
+ service fprobe-ulog condrestart
+fi
%preun
# 0 = erase, 1 = upgrade
if [ "$PL_BOOTCD" != "1" ] ; then
service fprobe-ulog stop
fi
- chkconfig fprobe-ulog off
chkconfig --del fprobe-ulog
fi