From: | "Markus Ullmann (jokey)" <jokey@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-irc/quassel/files: quasselcore.init quasselcore.conf |
Date: | Tue, 26 Aug 2008 12:01:59 |
Message-Id: | E1KXxF3-0005tP-DC@stork.gentoo.org |
1 | jokey 08/08/26 12:01:45 |
2 | |
3 | Added: quasselcore.init quasselcore.conf |
4 | Log: |
5 | Add init script and some other enhancements from Daniel Pielmeier in bug #217510 |
6 | (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-irc/quassel/files/quasselcore.init |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/files/quasselcore.init?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/files/quasselcore.init?rev=1.1&content-type=text/plain |
13 | |
14 | Index: quasselcore.init |
15 | =================================================================== |
16 | #!/sbin/runscript |
17 | # Copyright 1999-2008 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/files/quasselcore.init,v 1.1 2008/08/26 12:01:44 jokey Exp $ |
20 | |
21 | depend() { |
22 | need net |
23 | } |
24 | |
25 | start() { |
26 | ebegin "Starting Quassel Core" |
27 | start-stop-daemon --start --user $QUASSEL_USER --background --make-pidfile \ |
28 | --pidfile /var/run/quassel.pid --exec /usr/bin/quasselcore -- ${QUASSEL_OPTS} |
29 | eend $? |
30 | } |
31 | |
32 | stop() { |
33 | ebegin "Stopping Quassel Core" |
34 | start-stop-daemon --stop --user $QUASSEL_USER --pidfile /var/run/quassel.pid \ |
35 | --exec /usr/bin/quasselcore |
36 | eend $? |
37 | } |
38 | |
39 | |
40 | |
41 | 1.1 net-irc/quassel/files/quasselcore.conf |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/files/quasselcore.conf?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/files/quasselcore.conf?rev=1.1&content-type=text/plain |
45 | |
46 | Index: quasselcore.conf |
47 | =================================================================== |
48 | # /etc/conf.d/quasselcore |
49 | |
50 | QUASSEL_USER="" |
51 | |
52 | #Available options (QUASSEL_OPTS) for quasselcore: |
53 | #--port -p The port quasselcore will listen at. Default 4242 |
54 | #--norestore -n Don't restore last core's state |
55 | #--logfile -l Path to logfile |
56 | #--loglevel -L Loglevel Debug|Info|Warning|Error. Default Info |
57 | #--datadir -0 Specify the directory holding datafiles like the Sqlite DB and the SSL Cert |
58 | |
59 | #QUASSEL_OPTS="--logfile=/var/log/quassel.log" |
60 | #Does not work now, because of missing write permission to /var/log. |
61 | #Maybe creating /var/log/quassel with appropiate permissions will do the trick. |