blob: 876de54f85db52a900e2ec2de6d257509f873b22 (
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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/orbited/files/0.7.9/orbited.init,v 1.1 2009/04/19 18:16:35 caleb Exp $
depend() {
need net
use dns
}
checkconfig() {
if [ ! -f "/etc/orbited.cfg" ] ; then
eerror "No /etc/orbited.cfg file exists!"
fi
}
start() {
checkconfig || return 1
ebegin "Starting orbited..."
/usr/bin/orbited --config=/etc/orbited.cfg >/dev/null 2>&1 &
pid=$!
echo $pid > /var/run/orbited.pid
eend $?
}
stop() {
ebegin "Stopping orbited..."
start-stop-daemon --stop --quiet --pidfile=/var/run/orbited.pid --retry 20
eend $?
}
|