]> git.pld-linux.org Git - packages/mythtv.git/commitdiff
- added to CVS, based on ATrpms src.rpm:
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Apr 2005 18:59:01 +0000 (18:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  http://dl.atrpms.net/production/sources/fedora-3-i386/atrpms/mythtv-0.17-97.rhfc3.at.src.rpm

Changed files:
    mythbackend.init -> 1.1
    mythbackend.logrotate -> 1.1
    mythbackend.sysconfig -> 1.1

mythbackend.init [new file with mode: 0644]
mythbackend.logrotate [new file with mode: 0644]
mythbackend.sysconfig [new file with mode: 0644]

diff --git a/mythbackend.init b/mythbackend.init
new file mode 100644 (file)
index 0000000..69a052e
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/bash
+#
+# Startup script for mythbackend
+#
+# chkconfig: 2345 86 14
+# description: mythbackend.
+# processname: mythbackend
+# pidfile: /var/run/mythbackend.pid
+# config: /etc/sysconfig/mythbackend
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+if [ -f /etc/sysconfig/mythbackend ]; then
+       . /etc/sysconfig/mythbackend
+fi
+
+## Defaults, override them in /etc/sysconfig/mythbackend
+: ${MYTHTV_HOME=/var/lib/mythtv}
+
+binary=/usr/bin/mythbackend
+prog=mythbackend
+RETVAL=0
+OPTIONS="$OPTIONS --daemon --logfile /var/log/mythtv/$prog.log --pidfile /var/run/$prog.pid"
+
+# See how we were called.
+case "$1" in
+start)
+       # Start daemons.
+       if [ ! -f /var/lock/subsys/$prog ]; then
+               msg_starting "Mythbackend"
+               daemon --user mythtv "cd $MYTHTV_HOME && $binary $OPTIONS"
+
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
+       else
+               msg_already_running "Mythbackend"
+       fi
+;;
+stop)
+       # Stop daemons.
+       if [ -f /var/lock/subsys/$prog ]; then
+               msg_stopping "Mythbackend"
+               killproc $binary
+               rm -f /var/lock/subsys/$prog /var/run/$prog.pid >/dev/null 2>&1
+       else
+               msg_not_running "Mythbackend"
+       fi
+;;
+restart)
+       $0 stop
+       $0 start
+       exit $?
+;;
+status)
+       status $prog
+;;
+*)
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
+esac
+
+exit $RETVAL
diff --git a/mythbackend.logrotate b/mythbackend.logrotate
new file mode 100644 (file)
index 0000000..c8904f5
--- /dev/null
@@ -0,0 +1,11 @@
+/var/log/mythtv/mythbackend.log {
+       notifempty
+       missingok
+       compress
+       compresscmd /usr/bin/bzip2
+       uncompresscmd /usr/bin/bunzip2
+       compressext .bz2
+       weekly
+       rotate 4
+       size 10M
+}
diff --git a/mythbackend.sysconfig b/mythbackend.sysconfig
new file mode 100644 (file)
index 0000000..2c41c74
--- /dev/null
@@ -0,0 +1,4 @@
+# Customized settings for mythbackend
+
+#MYTHTV_HOME=/var/lib/mythtv
+#OPTIONS=
This page took 0.03912 seconds and 4 git commands to generate.