[Mon-devel] Patches for mon RPM building
Brought to you by:
trockij
From: Augie S. <aug...@gm...> - 2007-03-15 19:23:34
|
A few patches that fixed some problems I found when building a mon RPM. Patch spec file to add chkconfig: --- mon.spec 2005-04-17 00:42:25.000000000 -0700 +++ mon.spec 2007-03-15 12:18:13.901720283 -0700 @@ -133,6 +133,9 @@ if [ -d %{_localstatedir}/log -a ! -f %{_localstatedir}/log/mon_history.log ]; then touch %{_localstatedir}/log/mon_history.log fi +if [ $1 = 1 ]; then + /sbin/chkconfig --add mon +fi ################################################################### %postun Patch the init. script to point to the correct mon executable: --- S99mon 2007-03-15 12:01:33.851816189 -0700 +++ S99mon 2007-03-15 12:04:13.203365320 -0700 @@ -21,7 +21,7 @@ case "$1" in start) echo -n "Starting mon daemon: " - daemon /usr/lib/mon/mon -f -l -c /etc/mon/mon.cf + daemon /usr/sbin/mon -f -l -c /etc/mon/mon.cf echo touch /var/lock/subsys/mon ;; -- Augie Schwer - Augie@Schwer.us - http://schwer.us Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072 |