Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 92b38fed4cf48ac45162e3a6e49f5796 > files > 6

amavisd-new-2.6.6-1.fc15.src.rpm

--- amavisd_init.sh.orig	2004-02-23 16:09:02.000000000 -0600
+++ amavisd_init.sh	2004-02-23 16:13:52.000000000 -0600
@@ -60,8 +60,12 @@
 	action $"Reloading ${prog_base}:" ${prog} -c ${prog_config_file} reload
 	RETVAL=$?
 	;;
+  condrestart)
+	[ -f /var/lock/subsys/${prog_base} ] && $0 restart || :
+	RETVAL=$?
+	;;
   *)
-	echo "Usage: $0 {start|stop|status|restart|reload}"
+	echo "Usage: $0 {start|stop|status|restart|reload|condrestart}"
 	exit 1
 esac