rm -f docs/htmldocs/*.[0-9].html
%post
-NAME=smb; DESC="Samba daemons"; %chkconfig_add
+/sbin/chkconfig --add smb
+if [ -r /var/lock/subsys/smb ]; then
+ /etc/rc.d/init.d/smb restart >&2
+else
+ echo "Run \"/etc/rc.d/init.d/smb start\" to start Samba daemons."
+fi
%preun
-NAME=smb; %chkconfig_del
+if [ "$1" = "0" ]; then
+ if [ -r /var/lock/subsys/smb ]; then
+ /etc/rc.d/init.d/smb stop >&2
+ fi
+ /sbin/chkconfig --del smb
+fi
%post -n swat
-%rc_inetd_post
+if [ -f /var/lock/subsys/rc-inetd ]; then
+ /etc/rc.d/init.d/rc-inetd reload 1>&2
+else
+ echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
+fi
%postun -n swat
-%rc_inetd_postun
+if [ -f /var/lock/subsys/rc-inetd ]; then
+ /etc/rc.d/init.d/rc-inetd reload
+fi
%triggerpostun -- samba < 1.9.18p7
if [ "$1" != "0" ]; then