Files
NetworkManager/initscript/paldo/NetworkManager.in
Dan Williams d1fcfe9474 2008-04-27 Dan Williams <dcbw@redhat.com>
Patch from Benoit Boissinot <bboissin+networkmanager@gmail.com>

	* initscript/paldo/NetworkManager.in
	  initscript/SUSE/networkmanager.in
		- Remove last bits of dhcdbd



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3615 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-04-28 04:29:03 +00:00

57 lines
1.1 KiB
Bash

#!/bin/bash
### BEGIN INIT INFO
# Provides: NetworkManager
# Required-Start: $network dbus
# Required-Stop: $network dbus
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
### END INIT INFO
. /lib/lsb/init-functions
[ -e /etc/default/NetworkManager ] && source /etc/default/NetworkManager
[ $(/usr/bin/tty -s; echo $?) -gt 0 -o "$(/usr/bin/tty)" == "/dev/console" ] && [ "$START_NETWORK_MANAGER" != "TRUE" ] && exit 0
prefix=@prefix@
exec_prefix=@prefix@
sbindir=@sbindir@
case "$1" in
start)
echo -n "Starting NetworkManager..."
if start_daemon $sbindir/NetworkManager
then
log_success_msg
else
log_failure_msg
fi
;;
stop)
echo -n "Stopping NetworkManager..."
if killproc $sbindir/NetworkManager
then
log_success_msg "."
else
log_failure_msg
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
try-restart)
if pidofproc $sbindir/NetworkManager
then
$0 restart
fi
;;
status)
pidofproc $sbindir/NetworkManager
exit $?
;;
*)
echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
exit 1
;;
esac