Gentoo Archives: gentoo-commits

From: "Thomas Beierlein (tomjbe)" <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-radio/svxlink/files: svxlink.init remotetrx.rc svxlink.rc remotetrx.init
Date: Sun, 29 Jan 2012 06:54:13
Message-Id: 20120129065402.C6F842001D@flycatcher.gentoo.org
1 tomjbe 12/01/29 06:54:02
2
3 Added: svxlink.init remotetrx.rc svxlink.rc remotetrx.init
4 Log:
5 New version. Fixes bugs #335307, #336993, #366199 and #369881. Add myself to maintainer
6
7 (Portage version: 2.1.10.44/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-radio/svxlink/files/svxlink.init
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/svxlink.init?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/svxlink.init?rev=1.1&content-type=text/plain
14
15 Index: svxlink.init
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2012 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/media-radio/svxlink/files/svxlink.init,v 1.1 2012/01/29 06:54:02 tomjbe Exp $
21
22 PNAME=svxlink
23 NAME="SvxLink Server"
24 DAEMON=/usr/bin/$PNAME
25
26 POPTS="--daemon \
27 ${RUNASUSER:+--runasuser=$RUNASUSER} \
28 ${PIDFILE:+--pidfile=$PIDFILE} \
29 ${LOGFILE:+--logfile=$LOGFILE} \
30 ${CFGFILE:+--config=$CFGFILE}"
31
32 create_logfile()
33 {
34 touch $LOGFILE
35 if [ -n "$RUNASUSER" ]; then
36 chown $RUNASUSER.$RUNASUSER $LOGFILE
37 fi
38 }
39
40
41 depend() {
42 need localmount
43 use net
44 after bootmisc
45 }
46
47 start() {
48 ebegin "Starting $NAME"
49 create_logfile
50 export $ENV
51 start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- $POPTS
52 eend $?
53 }
54
55 stop() {
56 ebegin "Stopping $NAME"
57 start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
58 eend $?
59 }
60
61
62
63 1.1 media-radio/svxlink/files/remotetrx.rc
64
65 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/remotetrx.rc?rev=1.1&view=markup
66 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/remotetrx.rc?rev=1.1&content-type=text/plain
67
68 Index: remotetrx.rc
69 ===================================================================
70 #############################################################################
71 #
72 # Configuration file for the RemoteTrx startup script /etc/init.d/remotetrx
73 #
74 #############################################################################
75
76 # The log file to use
77 LOGFILE=/var/log/remotetrx
78
79 # The PID file to use
80 PIDFILE=/var/run/remotetrx.pid
81
82 # The user to run the SvxLink server as
83 RUNASUSER=svxlink
84
85 # Specify which configuration file to use
86 CFGFILE=/etc/svxlink/remotetrx.conf
87
88 # Environment variables to set up. Separate variables with a space.
89 ENV="ASYNC_AUDIO_NOTRIGGER=1"
90
91
92
93
94 1.1 media-radio/svxlink/files/svxlink.rc
95
96 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/svxlink.rc?rev=1.1&view=markup
97 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/svxlink.rc?rev=1.1&content-type=text/plain
98
99 Index: svxlink.rc
100 ===================================================================
101 #############################################################################
102 #
103 # Configuration file for the SvxLink startup script /etc/init.d/svxlink
104 #
105 #############################################################################
106
107 # The log file to use
108 LOGFILE=/var/log/svxlink
109
110 # The PID file to use
111 PIDFILE=/var/run/svxlink.pid
112
113 # The user to run the SvxLink server as
114 RUNASUSER=svxlink
115
116 # Specify which configuration file to use
117 CFGFILE=/etc/svxlink/svxlink.conf
118
119 # Environment variables to set up. Separate variables with a space.
120 ENV="ASYNC_AUDIO_NOTRIGGER=1"
121
122
123
124
125 1.1 media-radio/svxlink/files/remotetrx.init
126
127 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/remotetrx.init?rev=1.1&view=markup
128 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-radio/svxlink/files/remotetrx.init?rev=1.1&content-type=text/plain
129
130 Index: remotetrx.init
131 ===================================================================
132 #!/sbin/runscript
133 # Copyright 1999-2012 Gentoo Foundation
134 # Distributed under the terms of the GNU General Public License v2
135 # $Header: /var/cvsroot/gentoo-x86/media-radio/svxlink/files/remotetrx.init,v 1.1 2012/01/29 06:54:02 tomjbe Exp $
136
137 PNAME=remotetrx
138 NAME="RemoteTrx Server"
139 DAEMON=/usr/bin/$PNAME
140
141 POPTS="--daemon \
142 ${RUNASUSER:+--runasuser=$RUNASUSER} \
143 ${PIDFILE:+--pidfile=$PIDFILE} \
144 ${LOGFILE:+--logfile=$LOGFILE} \
145 ${CFGFILE:+--config=$CFGFILE}"
146
147 create_logfile()
148 {
149 touch $LOGFILE
150 if [ -n "$RUNASUSER" ]; then
151 chown $RUNASUSER.$RUNASUSER $LOGFILE
152 fi
153 }
154
155
156 depend() {
157 need localmount
158 use net
159 after bootmisc
160 }
161
162 start() {
163 ebegin "Starting $NAME"
164 create_logfile
165 export $ENV
166 start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- $POPTS
167 eend $?
168 }
169
170 stop() {
171 ebegin "Stopping $NAME"
172 start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
173 eend $?
174 }