3 # dpcproxy This shell script takes care of starting and stopping dpcproxy.
5 # chkconfig: 2345 80 30
6 # description: dpcproxy is a Intel Server Management cli service
8 # processname: dpcproxy
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # Source networking configuration.
14 . /etc/sysconfig/network
16 # Source oident configureation.
17 if [ -f /etc/sysconfig/dpcproxy ]; then
18 . /etc/sysconfig/dpcproxy
21 # Check that networking is up.
22 if is_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
24 msg_network_down dpcproxy
33 if [ ! -f /var/lock/subsys/dpcproxy ]; then
35 daemon /usr/sbin/dpcproxy $DPCPROXY_OPTS
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dpcproxy
39 msg_already_running dpcproxy
45 if [ -f /var/lock/subsys/dpcproxy ]; then
48 rm -f /var/lock/subsys/dpcproxy >/dev/null 2>&1
50 msg_not_running dpcproxy
55 if [ -f /var/lock/subsys/dpcproxy ]; then
60 msg_not_running dpcproxy
67 # See how we were called.
90 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"