aboutsummaryrefslogtreecommitdiffstats
path: root/testing/networkmanager/networkmanager.initd
blob: a6bce80b59418d79875f64ac0bdc3332ad0cb83a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
# Distributed under the terms of the GNU General Purpose License v2
# $Header: $

depend() {
   need dbus dhcpcd
}

start() {
   ebegin "Starting NetworkManager"
   start-stop-daemon --start --quiet --pidfile /var/run/NetworkManager.pid \
      --exec /usr/sbin/NetworkManager -- --pid-file /var/run/NetworkManager.pid
   eend $?
}

stop() {
   ebegin "Stopping NetworkManager"
   start-stop-daemon --stop --quiet --pidfile /var/run/NetworkManager.pid
   eend $?
}

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