From: Kenn H. <ke...@bl...> - 2004-11-08 12:21:38
|
This patch adds the 'condrestart' option to the redhat init script. Applies to 2.1.0pl1 Later, Kenn --- BackupPC-2.1.0/init.d/src/linux-backuppc.condrestart 2004-11-04 = 12:53:41.000000000 +0000 +++ BackupPC-2.1.0/init.d/src/linux-backuppc 2004-11-04 = 12:51:43.000000000 +0000 @@ -77,6 +77,12 @@ restart) restart ;; + condrestart) + if [ -f /var/lib/BackupPC/log/BackupPC.pid ] ; then + stop + start + fi + ;; reload) reload ;; @@ -84,7 +90,7 @@ rhstatus ;; *) - echo "Usage: $0 {start|stop|restart|reload|status}" + echo "Usage: $0 {start|stop|restart|condrestart|reload|status}" exit 1 esac =20 |