Advertisement
Guest User

Untitled

a guest
Nov 16th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. cat mythtv-backend.conf
  2. # MythTV Backend service
  3.  
  4. description "MythTV Backend"
  5. author "Mario Limonciello <superm1@ubuntu.com>"
  6.  
  7. start on (local-filesystems and net-device-up IFACE!=lo and started udev-finish) # Note 1.
  8. stop on runlevel [016]
  9.  
  10. #expect fork
  11. kill timeout 10
  12. respawn
  13. respawn limit 2 3600
  14.  
  15. pre-start script
  16. [ -x /usr/sbin/mysqld ] || exit 0
  17. for i in `seq 1 30` ; do
  18. /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping && exit 0
  19. sleep .5
  20. done
  21. end script
  22.  
  23. script
  24. ulimit -c unlimited # Note 2.
  25. test -f /etc/default/locale && . /etc/default/locale || true # Note 3.
  26. ARGS="--logpath /var/log/mythtv" # Note 4. (pick 1)
  27. sleep 5 # Note 5.
  28. test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
  29. LANG=$LANG exec /usr/local/bin/mythbackend --user mythtv $ARGS $EXTRA_ARGS
  30. end script
  31. nwayno@Willy:/etc/init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement