Ticket #10150: mythtv-backend.conf

File mythtv-backend.conf, 749 bytes (added by monochromec@…, 13 years ago)
Line 
1# MythTV Backend service
2
3description     "MythTV Backend"
4author          "Mario Limonciello <superm1@ubuntu.com>"
5
6start on (local-filesystems and net-device-up IFACE=eth0 and started udev-finish)
7stop on runlevel [016]
8
9#expect fork
10respawn
11respawn limit 2 3600
12
13pre-start script
14    [ -x /usr/sbin/mysqld ] || exit 0
15    for i in `seq 1 30` ; do
16       /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping && exit 0
17       sleep .5
18    done
19end script
20
21script
22        test -f /etc/default/locale && . /etc/default/locale || true
23        LANG=$LANG /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user mythtv -v most,important
24#       LANG=$LANG /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log -v most,important
25end script