Postbix logo

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: , ,

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this. To know all the policy detais click here.

Close