From: Thadeu Lima de Souza Cascardo Date: Mon, 20 Jul 2009 20:42:36 +0000 (-0300) Subject: Use init functions from CentOS 5, instead of those from OpenSuSE. X-Git-Tag: v0.1.3~3 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=1abeb1f8078fe4c3b5b1059ecb043a48310dd0d6 Use init functions from CentOS 5, instead of those from OpenSuSE. --- diff --git a/popproxy.init b/popproxy.init index 9a82199..372f3ec 100644 --- a/popproxy.init +++ b/popproxy.init @@ -10,9 +10,13 @@ POPPROXY_BIN=/usr/sbin/popproxy +if [ -f /etc/init.d/functions ] + . /etc/init.d/functions +fi + case $1 in start) - startproc $POPPROXY_BIN + daemon $POPPROXY_BIN ;; stop) killproc $POPPROXY_BIN