Advertisement
Proton23

mythtv-backend.service

May 13th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.78 KB | None | 0 0
  1. # In order to insure that systemd will create a device unit for the
  2. # capture device, one must insure that udev will have the tag "systemd"
  3. # (i.e. add TAG+="systemd" to the udev rule).
  4. #
  5. # The MythTV package ships with a default udev rule file located in:
  6. # /lib/udev/rules.d/99-mythbackend.rules
  7.  
  8. [Unit]
  9. Description=MythTV backend service
  10. After=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device network.target mysqld.service NetworkManager-wait-online.service pingnetwork.service
  11. Wants=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device pingnetwork.service
  12.  
  13. # Uncomment the following line if you will be using the mythweb plugin on the
  14. # same system as mythbackend.
  15. #Wants=httpd.service
  16.  
  17. [Service]
  18. # You have 2 choices for 'Type': simple or forking
  19. # These require ExecStart lines which are NOT interchangeable.
  20. # Type=simple is recommended.
  21. # If using 'Type=simple'
  22. # 1) you cannot have --daemon in the command line
  23.  
  24. # If using 'Type=forking'
  25. # 1) you must have --daemon in the command line AND
  26. # 2) you must have  --pidfile /somewhere in the command line AND
  27. # 3) you must have a line PIDFILE=/somewhere in the [service] stanza
  28. # this lets systemd know how to find the forked process PID,
  29. # otherwise it presumes the starting process will be the remaining process
  30. # (cf. with the mysqld_safe process which starts mysqld and then disappears).
  31. # Specifying a pidfile with Type simple does not cause any problems and
  32. # may help in debugging startup failures.
  33.  
  34. #Type=forking
  35. Type=simple
  36.  
  37. Environment=MYTHCONFDIR=/etc/mythtv
  38. # Default setting assumes a system wide install. Otherwise it should be set to
  39. # the folder containing the .mythtv subfolder containing the config.xml file
  40. # Such as Environment=HOME=/usr/share/mythtv
  41. # or Environment=HOME=/~/.mythtv
  42.  
  43. # systemd changes execution from the calling user (possibly root) to this user
  44. # if you have permissions problems or obscure errors try logging in as mythtv
  45. # See notes below
  46. User=mythtv
  47.  
  48. # Uncomment one of the following...
  49. # Use sysloging rather than separate logging:
  50. #ExecStart=/usr/bin/mythbackend --syslog local7
  51.  
  52. # If Type=forking you must specify the --daemon and --pidfile options:
  53. #ExecStart=/usr/bin/mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythtv/mythbackend.pid
  54. #PIDFILE=/run/mythtv/mythbackend.pid
  55.  
  56. # Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
  57. # Send stdout to /dev/null so console logging doesn't go to syslog
  58. #StandardOutput=null
  59. # Default setting for Type=simple.
  60. ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
  61.  
  62. # Whether systemd will continue over-watch and restart on any halt
  63. #Restart=Restart-always
  64.  
  65. [Install]
  66. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement