Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat mythtv-backend.conf
- # MythTV Backend service
- description "MythTV Backend"
- author "Mario Limonciello <superm1@ubuntu.com>"
- start on (local-filesystems and net-device-up IFACE!=lo and started udev-finish) # Note 1.
- stop on runlevel [016]
- #expect fork
- kill timeout 10
- respawn
- respawn limit 2 3600
- pre-start script
- [ -x /usr/sbin/mysqld ] || exit 0
- for i in `seq 1 30` ; do
- /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping && exit 0
- sleep .5
- done
- end script
- script
- ulimit -c unlimited # Note 2.
- test -f /etc/default/locale && . /etc/default/locale || true # Note 3.
- ARGS="--logpath /var/log/mythtv" # Note 4. (pick 1)
- sleep 5 # Note 5.
- test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
- LANG=$LANG exec /usr/local/bin/mythbackend --user mythtv $ARGS $EXTRA_ARGS
- end script
- nwayno@Willy:/etc/init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement