Advertisement
Proton23

mythtv-backend.service 200516

May 20th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.61 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. Wants=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device network-online.target pingnetwork.service
  11.  
  12. After=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device mysqld.service network.target NetworkManager-wait-online.service pingnetwork.service
  13.  
  14. # Uncomment the following line if you will be using the mythweb plugin on the
  15. # same system as mythbackend.
  16. #Wants=httpd.service
  17.  
  18. [Service]
  19. Type=simple
  20.  
  21. Environment=MYTHCONFDIR=/etc/mythtv
  22. # the folder containing the .mythtv subfolder containing the config.xml file
  23. # Such as Environment=HOME=/usr/share/mythtv
  24. # or Environment=HOME=/~/.mythtv
  25.  
  26. User=mythtv
  27.  
  28. # Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
  29. # Send stdout to /dev/null so console logging doesn't go to syslog
  30. #StandardOutput=null
  31. # Default setting for Type=simple.
  32. #ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
  33. #ExecStartPre=/usr/bin/nm-online --quiet --timeout=10
  34. #ExecStartPre=sleep(20)
  35. ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel info
  36. #ExecStop=/usr/bin/mythshutdown --setschedulewakeup
  37.  
  38. # Whether systemd will continue over-watch and restart on any halt
  39. #Restart=Restart-always
  40.  
  41. [Install]
  42. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement