blob: 1ce42d3ff94217b018942f6f2209046af3c857a1 (
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpv6/files/dhcp6s.rc,v 1.3 2004/07/14 23:57:15 agriffis Exp $
#configuration is done in /etc/dhcp6s.conf
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/dhcp6s.conf ] ; then
eerror "You need an /etc/dhcp6s.conf file to run dhcp6s"
eerror "There is a sample conf file in /usr/share/doc/dhcpv6-0.7"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting dhcp6s"
start-stop-daemon --start --quiet --exec /usr/sbin/dhcp6s
eend $?
}
stop() {
ebegin "Stopping dhcp6s"
start-stop-daemon --stop --quiet --exec /usr/sbin/dhcp6s
eend $?
}
|