1 | # MythTV Backend service |
---|
2 | |
---|
3 | description "MythTV Backend" |
---|
4 | author "Mario Limonciello <superm1@ubuntu.com>" |
---|
5 | |
---|
6 | start on (local-filesystems and net-device-up IFACE=eth0 and started udev-finish) |
---|
7 | stop on runlevel [016] |
---|
8 | |
---|
9 | #expect fork |
---|
10 | respawn |
---|
11 | respawn limit 2 3600 |
---|
12 | |
---|
13 | pre-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 |
---|
19 | end script |
---|
20 | |
---|
21 | script |
---|
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 |
---|
25 | end script |
---|