I’ve received this patch to improve (or better) to made Postbix start|stop script compatible with Ubuntu server 10.04
This patch has been developed from John O’Shea. Thank you John!
— /etc/init.d/postbix 2011-03-25 13:26:27.944434132 +0000
+++ /opt/postbix/init.d/postbix 2010-12-01 12:27:18.000000000 +0000
@@ -7,7 +7,10 @@
# processname: postbix
#
# Source function library.
-. /lib/lsb/init-functions
+. /etc/rc.d/init.d/functions
+
+# Get config.
+. /etc/sysconfig/network
# Check that networking is up.
[ “${NETWORKING}” = “no” ] && exit 0
@@ -21,7 +24,7 @@
$startup
RETVAL=$?
echo
– [ $RETVAL -eq 0 ] && touch /var/lock/postbix
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/postbix
return $RETVAL
}
@@ -31,7 +34,7 @@
kill `cat $postbix/logs/postbix.pid`
RETVAL=$?
echo
– [ $RETVAL -eq 0 ] && rm -f /var/lock/postbix
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/postbix
return $RETVAL
}
@@ -69,4 +72,4 @@
esac
exit $RETVAL
–
+
\ No newline at end of file
everyone can download here this new [start|stop] script
Tags: linkedin, postbix, postgresql