1 |
caleb 09/08/30 11:44:47 |
2 |
|
3 |
Added: orbited.init orbited.cfg |
4 |
Log: |
5 |
Version bump per #283204, and fix deps and location of config files |
6 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-misc/orbited/files/orbited.init |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/orbited/files/orbited.init?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/orbited/files/orbited.init?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: orbited.init |
15 |
=================================================================== |
16 |
#!/sbin/runscript |
17 |
# Copyright 1999-2009 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/orbited/files/orbited.init,v 1.1 2009/08/30 11:44:46 caleb Exp $ |
20 |
|
21 |
depend() { |
22 |
need net |
23 |
use dns |
24 |
} |
25 |
|
26 |
checkconfig() { |
27 |
if [ ! -f "/etc/orbited.cfg" ] ; then |
28 |
eerror "No /etc/orbited.cfg file exists!" |
29 |
fi |
30 |
} |
31 |
|
32 |
start() { |
33 |
checkconfig || return 1 |
34 |
ebegin "Starting orbited..." |
35 |
/usr/bin/orbited --config=/etc/orbited.cfg >/dev/null 2>&1 & |
36 |
pid=$! |
37 |
echo $pid > /var/run/orbited.pid |
38 |
eend $? |
39 |
} |
40 |
|
41 |
stop() { |
42 |
ebegin "Stopping orbited..." |
43 |
start-stop-daemon --stop --quiet --pidfile=/var/run/orbited.pid --retry 20 |
44 |
eend $? |
45 |
} |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
1.1 net-misc/orbited/files/orbited.cfg |
51 |
|
52 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/orbited/files/orbited.cfg?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/orbited/files/orbited.cfg?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: orbited.cfg |
56 |
=================================================================== |
57 |
# Example Orbited Configuration file |
58 |
|
59 |
[global] |
60 |
reactor=select |
61 |
# reactor=kqueue |
62 |
# reactor=epoll |
63 |
session.ping_interval = 40 |
64 |
session.ping_timeout = 30 |
65 |
# once the sockets are open, orbited will drop its privileges to this user. |
66 |
user=orbited |
67 |
|
68 |
[listen] |
69 |
http://:8000 |
70 |
#stomp://:61613 |
71 |
# uncomment to enable SSL on port 8043 using given .key and .crt files |
72 |
#https://:8043 |
73 |
# |
74 |
#[ssl] |
75 |
#key=orbited.key |
76 |
#crt=orbited.crt |
77 |
|
78 |
[static] |
79 |
|
80 |
[access] |
81 |
localhost:8000 -> irc.freenode.net:6667 |
82 |
* -> localhost:4747 |
83 |
#* -> localhost:61613 |
84 |
|
85 |
[logging] |
86 |
debug=STDERR,debug.log |
87 |
info=STDERR,info.log |
88 |
access=STDERR,info.log |
89 |
warn=STDERR,error.log |
90 |
error=STDERR,error.log |
91 |
|
92 |
#Don't enable debug by default |
93 |
enabled.default=info,access,warn,error |
94 |
|
95 |
# Turn debug on for the "Proxy" logger |
96 |
[loggers] |
97 |
#Proxy=debug,info,access,warn,error |