/[gentoo-x86]/net-misc/orbited/files/orbited.init
Gentoo

Contents of /net-misc/orbited/files/orbited.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Aug 30 11:44:46 2009 UTC (10 years, 6 months ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Version bump per #283204, and fix deps and location of config files
(Portage version: 2.1.6.13/cvs/Linux i686)

1 #!/sbin/runscript
2 # Copyright 1999-2009 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $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 $
5
6 depend() {
7 need net
8 use dns
9 }
10
11 checkconfig() {
12 if [ ! -f "/etc/orbited.cfg" ] ; then
13 eerror "No /etc/orbited.cfg file exists!"
14 fi
15 }
16
17 start() {
18 checkconfig || return 1
19 ebegin "Starting orbited..."
20 /usr/bin/orbited --config=/etc/orbited.cfg >/dev/null 2>&1 &
21 pid=$!
22 echo $pid > /var/run/orbited.pid
23 eend $?
24 }
25
26 stop() {
27 ebegin "Stopping orbited..."
28 start-stop-daemon --stop --quiet --pidfile=/var/run/orbited.pid --retry 20
29 eend $?
30 }

  ViewVC Help
Powered by ViewVC 1.1.20