diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2012-01-29 06:54:02 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2012-01-29 06:54:02 +0000 |
commit | f382ccb751a7f49c2af0ea173c1b9872f2917bc5 (patch) | |
tree | 8e00ea19f289513ac0f8114c78ebb819c28045d7 /media-radio/svxlink/files | |
parent | x86 stable per bug 401119 (diff) | |
download | historical-f382ccb751a7f49c2af0ea173c1b9872f2917bc5.tar.gz historical-f382ccb751a7f49c2af0ea173c1b9872f2917bc5.tar.bz2 historical-f382ccb751a7f49c2af0ea173c1b9872f2917bc5.zip |
New version. Fixes bugs #335307, #336993, #366199 and #369881. Add myself to maintainer
Package-Manager: portage-2.1.10.44/cvs/Linux x86_64
Diffstat (limited to 'media-radio/svxlink/files')
-rw-r--r-- | media-radio/svxlink/files/remotetrx.init | 43 | ||||
-rw-r--r-- | media-radio/svxlink/files/remotetrx.rc | 21 | ||||
-rw-r--r-- | media-radio/svxlink/files/svxlink.init | 43 | ||||
-rw-r--r-- | media-radio/svxlink/files/svxlink.rc | 21 |
4 files changed, 128 insertions, 0 deletions
diff --git a/media-radio/svxlink/files/remotetrx.init b/media-radio/svxlink/files/remotetrx.init new file mode 100644 index 000000000000..f69f827e9e5c --- /dev/null +++ b/media-radio/svxlink/files/remotetrx.init @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-radio/svxlink/files/remotetrx.init,v 1.1 2012/01/29 06:54:02 tomjbe Exp $ + +PNAME=remotetrx +NAME="RemoteTrx Server" +DAEMON=/usr/bin/$PNAME + +POPTS="--daemon \ + ${RUNASUSER:+--runasuser=$RUNASUSER} \ + ${PIDFILE:+--pidfile=$PIDFILE} \ + ${LOGFILE:+--logfile=$LOGFILE} \ + ${CFGFILE:+--config=$CFGFILE}" + +create_logfile() +{ + touch $LOGFILE + if [ -n "$RUNASUSER" ]; then + chown $RUNASUSER.$RUNASUSER $LOGFILE + fi +} + + +depend() { + need localmount + use net + after bootmisc +} + +start() { + ebegin "Starting $NAME" + create_logfile + export $ENV + start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- $POPTS + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON + eend $? +} diff --git a/media-radio/svxlink/files/remotetrx.rc b/media-radio/svxlink/files/remotetrx.rc new file mode 100644 index 000000000000..940cc389bf4c --- /dev/null +++ b/media-radio/svxlink/files/remotetrx.rc @@ -0,0 +1,21 @@ +############################################################################# +# +# Configuration file for the RemoteTrx startup script /etc/init.d/remotetrx +# +############################################################################# + +# The log file to use +LOGFILE=/var/log/remotetrx + +# The PID file to use +PIDFILE=/var/run/remotetrx.pid + +# The user to run the SvxLink server as +RUNASUSER=svxlink + +# Specify which configuration file to use +CFGFILE=/etc/svxlink/remotetrx.conf + +# Environment variables to set up. Separate variables with a space. +ENV="ASYNC_AUDIO_NOTRIGGER=1" + diff --git a/media-radio/svxlink/files/svxlink.init b/media-radio/svxlink/files/svxlink.init new file mode 100644 index 000000000000..e43bfd94711a --- /dev/null +++ b/media-radio/svxlink/files/svxlink.init @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-radio/svxlink/files/svxlink.init,v 1.1 2012/01/29 06:54:02 tomjbe Exp $ + +PNAME=svxlink +NAME="SvxLink Server" +DAEMON=/usr/bin/$PNAME + +POPTS="--daemon \ + ${RUNASUSER:+--runasuser=$RUNASUSER} \ + ${PIDFILE:+--pidfile=$PIDFILE} \ + ${LOGFILE:+--logfile=$LOGFILE} \ + ${CFGFILE:+--config=$CFGFILE}" + +create_logfile() +{ + touch $LOGFILE + if [ -n "$RUNASUSER" ]; then + chown $RUNASUSER.$RUNASUSER $LOGFILE + fi +} + + +depend() { + need localmount + use net + after bootmisc +} + +start() { + ebegin "Starting $NAME" + create_logfile + export $ENV + start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- $POPTS + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON + eend $? +} diff --git a/media-radio/svxlink/files/svxlink.rc b/media-radio/svxlink/files/svxlink.rc new file mode 100644 index 000000000000..5f19f576e824 --- /dev/null +++ b/media-radio/svxlink/files/svxlink.rc @@ -0,0 +1,21 @@ +############################################################################# +# +# Configuration file for the SvxLink startup script /etc/init.d/svxlink +# +############################################################################# + +# The log file to use +LOGFILE=/var/log/svxlink + +# The PID file to use +PIDFILE=/var/run/svxlink.pid + +# The user to run the SvxLink server as +RUNASUSER=svxlink + +# Specify which configuration file to use +CFGFILE=/etc/svxlink/svxlink.conf + +# Environment variables to set up. Separate variables with a space. +ENV="ASYNC_AUDIO_NOTRIGGER=1" + |