blob: 2c287c47e9d170ea15a443fc33503cbbee95d8cc (
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
37
38
|
#!/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/ptrtd/files/ptrtd.initd,v 1.2 2004/07/15 00:09:37 agriffis Exp $
# Init script for the ptrtd daemon.
#
# Peter Johanson <latexer@gentoo.org>
depends() {
need net
}
checkconfig() {
if [ -z ${IPV6_PREFIX} ]
then
eerror "You must define IPV6_PREFIX in /etc/conf.d/ptrtd"
return 1
else
return 0
fi
}
start() {
checkconfig || return 1
ebegin "Starting ptrtd"
start-stop-daemon --start --quiet --exec /usr/sbin/ptrtd \
-- -p ${IPV6_PREFIX} &> /dev/null
eend $?
}
stop() {
ebegin "Stopping ptrtd"
start-stop-daemon --stop --quiet --exec /usr/sbin/ptrtd
eend $?
}
|