NetworkManager.in 583 Bytes
Newer Older
Seth Nickell's avatar
Seth Nickell committed
1
#!/sbin/runscript
2 3 4
# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
# Distributed under the terms of the GNU General Purpose License v2
# $Header: $
Seth Nickell's avatar
Seth Nickell committed
5 6

depend() {
Dan Williams's avatar
Dan Williams committed
7
   need dbus
Seth Nickell's avatar
Seth Nickell committed
8 9
}

10 11
start() {
   ebegin "Starting NetworkManager"
12 13
   start-stop-daemon --start --quiet --pidfile /var/run/NetworkManager.pid \
      --exec /usr/sbin/NetworkManager -- --pid-file /var/run/NetworkManager.pid
14
   eend $?
Seth Nickell's avatar
Seth Nickell committed
15 16
}

17 18 19
stop() {
   ebegin "Stopping NetworkManager"
   start-stop-daemon --stop --quiet --pidfile /var/run/NetworkManager.pid
20
   eend $?
Seth Nickell's avatar
Seth Nickell committed
21
}
22 23

# vim: set ft=gentoo-init-d ts=3 sw=3 et: