Changed files:
dictd.init -> 1.5
# Get network config
. /etc/sysconfig/network
# Get network config
. /etc/sysconfig/network
-if is_no "${NETWORKING}"; then
- msg_network_down ${DAEMON_FILE}
- exit 1
+if is_yes "${NETWORKING}"; then
+ if [ ! -f /var/lock/subsys/network ]; then
+ msg_network_down ${DAEMON_FILE}
+ exit 1
+ fi
+else
+ exit 0
msg_already_running ${DAEMON_NAME}
exit 1
fi
msg_already_running ${DAEMON_NAME}
exit 1
fi
stop)
if [ -f /var/lock/subsys/${DAEMON_FILE} ]; then
msg_stopping ${DAEMON_NAME}
stop)
if [ -f /var/lock/subsys/${DAEMON_FILE} ]; then
msg_stopping ${DAEMON_NAME}
- status ${DAEMON_FILE}
- ;;
+ status ${DAEMON_FILE}
+ ;;
- $0 stop
- $0 start
- ;;
+ $0 stop
+ $0 start
+ ;;
*)
msg_usage "$0 {start|stop|restart|reload|status}"
exit 1
*)
msg_usage "$0 {start|stop|restart|reload|status}"
exit 1