blob: 9ae67362d64546267b22b0c6965e9b56d46db4d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
opts="${opts} reload"
depend() {
need net
}
start() {
ebegin "Starting npcd"
start-stop-daemon --start --exec /usr/bin/npcd \
-- -f /etc/pnp/npcd.cfg \
-d
eend $? "Failed to Start npcd"
}
stop() {
ebegin "Stopping npcd"
start-stop-daemon --stop --quiet -n npcd
eend $? "Failed to Stop npcd"
}
reload() {
ebegin "Reloading npcd"
kill -HUP `pgrep npcd`
eend $? "Failed to reload npcd"
}
restart() {
ebegin "Restarting npcd"
svc_stop
svc_start
eend $? "Failed to Restart npcd"
}
|