# description: c-icap ICAP server
#
# processname: c-icap
-# pidfile: /var/run/c-icap.pid
+# pidfile: /var/run/c-icap/c-icap.pid
# config: /etc/c-icap/c-icap.conf
# Source function library
# Get service config
[ -f /etc/sysconfig/c-icap ] && . /etc/sysconfig/c-icap
+# Default pidfile location
+c_icap_pidfile="/var/run/c-icap/c-icap.pid"
+
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status -a "$1" != init ]; then
if [ -f /var/lock/subsys/c-icap ]; then
# Stop daemons.
msg_stopping c-icap
- killproc c-icap
+ killproc --pidfile $c_icap_pidfile c-icap
rm -f /var/lock/subsys/c-icap >/dev/null 2>&1
else
msg_not_running c-icap
reload
;;
status)
- status c-icap
+ status --pidfile $c_icap_pidfile c-icap
exit $?
;;
*)