Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. # systemctl cat mythbackend.service
  2. # /usr/lib/systemd/system/mythbackend.service
  3. # Do not edit this file, it will be replaced on update
  4. # If you need to make modifications to this unit file first make a copy in
  5. # /etc/systemd/system
  6.  
  7. # This file is part of the packaging of MythTV
  8. #
  9. # MythTV is free software; view http://www.mythtv.org
  10. # for more information.
  11. #
  12. # It is sometimes necessary to wait for a capture
  13. # device to finish (hot)plug initialization before
  14. # the backend starts. If this is necessary,
  15. # create a Wants and After entry for all the capture
  16. # devices that one wishes to wait to be created
  17. # before the backend starts using the systemd
  18. # device name mangling names (/dev/some/thing turns
  19. # into dev-some-thing.device). These normally should
  20. # be udev persistent filename rules to avoid confusion.
  21. # See the MythTV wiki for udev persistent filename
  22. # discussions found at:
  23. # http://www.mythtv.org/wiki/Device_Filenames_and_udev
  24. #
  25. # In order to insure that systemd will create a
  26. # device unit for the capture device, one must
  27. # insure that udev will have the tag "systemd"
  28. # (i.e. add TAG+="systemd" to the udev rule).
  29. #
  30. # The MythTV package ships with a default udev
  31. # rule file located in: /lib/udev/rules.d/99-mythbackend.rules
  32.  
  33. [Unit]
  34. Description=MythTV backend service
  35. After=network-online.target mariadb.service mysqld.service time-sync.target
  36. # Uncomment the following line if you will be using the mythweb plugin on the
  37. # same system as mythbackend.
  38. #Wants=httpd.service
  39.  
  40. [Service]
  41. # Type=simple is recommended. If using Type=forking you will need to specify a
  42. # pidfile so systemd knows how to find the forked process PID, otherwise it
  43. # presumes that the process being started will be the remaining process.
  44. #Type=forking
  45. Type=simple
  46.  
  47. # Default setting assumes a system wide install. Otherwise it should be set to
  48. # the folder containing the .mythtv subfolder containing the config.xml file
  49. Environment=MYTHCONFDIR=/etc/mythtv
  50.  
  51. # systemd changes execution from the calling user (possibly root) to this user
  52. # if you have permissions problems or obscure errors try logging in as mythtv
  53. User=mythtv
  54.  
  55. # Uncomment one of the following...
  56. # Use sysloging rather than separate logging:
  57. #ExecStart=/usr/bin/mythbackend --syslog local7
  58. # If Type=forking is set you must specify the --daemon and --pidfile options:
  59. #ExecStart=/usr/bin/mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythbackend.pid
  60. # Default setting for Type=simple.
  61. ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
  62.  
  63. # Whether systemd will continue over-watch and restart on any halt
  64. #Restart=always
  65.  
  66. # MariaDB seems to have a systemd related bug and tells systemd that it is
  67. # ready to accept connections before it really is. If you have this problem
  68. # try uncommenting the following lines:
  69. # Restart=on-failure
  70. # StartLimitBurst=5
  71. # StartLimitInterval=1
  72.  
  73. [Install]
  74. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement