Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 6cb6fb981fbf67b8c8ae7a3e643a3d4e > files > 6

amavisd-new-2.6.4-2.fc13.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