diff --git a/distributions/gentoo/etc/conf.d/remotetrx b/distributions/gentoo/etc/conf.d/remotetrx new file mode 100644 index 00000000..5d163f2d --- /dev/null +++ b/distributions/gentoo/etc/conf.d/remotetrx @@ -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/remotetrx.conf + +# Environment variables to set up. Separate variables with a space. +ENV="ASYNC_AUDIO_NOTRIGGER=1" + diff --git a/distributions/gentoo/etc/conf.d/svxlink b/distributions/gentoo/etc/conf.d/svxlink new file mode 100644 index 00000000..4e8b6b41 --- /dev/null +++ b/distributions/gentoo/etc/conf.d/svxlink @@ -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.conf + +# Environment variables to set up. Separate variables with a space. +ENV="ASYNC_AUDIO_NOTRIGGER=1" + diff --git a/distributions/gentoo/etc/init.d/remotetrx b/distributions/gentoo/etc/init.d/remotetrx new file mode 100755 index 00000000..00a2659e --- /dev/null +++ b/distributions/gentoo/etc/init.d/remotetrx @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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() { + +#} + +#restart() { + +#} diff --git a/distributions/gentoo/etc/init.d/svxlink b/distributions/gentoo/etc/init.d/svxlink new file mode 100755 index 00000000..8d12c705 --- /dev/null +++ b/distributions/gentoo/etc/init.d/svxlink @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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() { + +#} + +#restart() { + +#} diff --git a/distributions/gentoo/etc/logrotate.d/svxlink b/distributions/gentoo/etc/logrotate.d/svxlink new file mode 100644 index 00000000..3bcca7b3 --- /dev/null +++ b/distributions/gentoo/etc/logrotate.d/svxlink @@ -0,0 +1,11 @@ +/var/log/svxlink /var/log/remotetrx { + missingok + notifempty + weekly + create 0644 svxlink svxlink + postrotate + killall -HUP svxlink + killall -HUP remotetrx + endscript +} +