Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # In order to insure that systemd will create a device unit for the
- # capture device, one must insure that udev will have the tag "systemd"
- # (i.e. add TAG+="systemd" to the udev rule).
- #
- # The MythTV package ships with a default udev rule file located in:
- # /lib/udev/rules.d/99-mythbackend.rules
- [Unit]
- Description=MythTV backend service
- Wants=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device network-online.target pingnetwork.service
- After=dev-dvb-adapter0-frontend0.device dev-dvb-adapter1-frontend0.device mysqld.service network.target NetworkManager-wait-online.service pingnetwork.service
- # Uncomment the following line if you will be using the mythweb plugin on the
- # same system as mythbackend.
- #Wants=httpd.service
- [Service]
- Type=simple
- Environment=MYTHCONFDIR=/etc/mythtv
- # the folder containing the .mythtv subfolder containing the config.xml file
- # Such as Environment=HOME=/usr/share/mythtv
- # or Environment=HOME=/~/.mythtv
- User=mythtv
- # Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
- # Send stdout to /dev/null so console logging doesn't go to syslog
- #StandardOutput=null
- # Default setting for Type=simple.
- #ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
- #ExecStartPre=/usr/bin/nm-online --quiet --timeout=10
- #ExecStartPre=sleep(20)
- ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel info
- #ExecStop=/usr/bin/mythshutdown --setschedulewakeup
- # Whether systemd will continue over-watch and restart on any halt
- #Restart=Restart-always
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement