<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I home this gets attached to the proper thread, but I'm not sure, since stg must be wrong with the posts I (don't) receive from this list.<br><br>I'm using openSUSE 12.3, and this is my mythbackend.service file. It's been working flawlessly for some time now. I hope it helps. Make sure you have a HOME variable.<br>If you change your file, you have to run as root: # systemctl daemon-reload <br>for udev to re-read the configuration files.<br><br>###################################################<br># file located at /etc/systemd/system/mythbackend.service<br># use "systemctl enable mythtbackend.service to load<br># based on a template from RPMFusion and R.G. Newbury from this thread:<br># http://www.gossamer-threads.com/lists/mythtv/users/516650?se[..]<br><br>[Unit]<br>Description=MythTV backend service<br><br>After=network.target mysql.service<br>After=dev-dvb-adapter0-frontend0.device<br># for mythweb: not necessary so we put 'wants' not 'after'<br>#Wants=httpd.service<br># On openSUSE, it's 'apache2', not 'httpd' service<br>Wants=apache2.service<br># Try to wait until the DVB-T adapter is present.<br># for this to work a udev.rules file has to be created. I'm calling mine 11-mythbackend.rules<br>Wants=dev-dvb-adapter0-frontend0.device<br><br>[Service]<br>Type=simple<br># For the rare crashes, the service will restart automatically. Cool?<br>Restart=on-failure<br><br># The HOME environment variable is necessary for mythbackend to find it's configuration files.<br>Environment=HOME=/home/yianni<br># Making sure that it runs with proper locale settings.<br>Environment=LANG=el_GR.UTF-8<br>Environment=LC_CTYPE=el_GR.UTF-8<br>Environment=LC_NUMERIC=el_GR.UTF-8<br>Environment=LC_TIME=el_GR.UTF-8<br>Environment=LC_COLLATE=el_GR.UTF-8<br>Environment=LC_MONETARY=el_GR.UTF-8<br>Environment=LC_MESSAGES=el_GR.UTF-8<br>Environment=LC_PAPER=el_GR.UTF-8<br>Environment=LC_NAME=el_GR.UTF-8<br>Environment=LC_ADDRESS=el_GR.UTF-8<br>Environment=LC_TELEPHONE=el_GR.UTF-8<br>Environment=LC_MEASUREMENT=el_GR.UTF-8<br>Environment=LC_IDENTIFICATION=el_GR.UTF-8<br>Environment=LC_ALL=el_GR.UTF-8<br>Environment=MYTHBACKEND_OPTIONS=--nodblog --loglevel warning --syslog local7<br># NOTE: using the "yianni" user, NOT root.<br>User=yianni<br><br># NOTE: if you have other switches you want, insert them below. This is set to use log files in<br># /var/log/mythtv. Make sure that the location of the HOME/MYTHCONFIG files, logs and the pid file<br># are writeable by the user designated above.<br>ExecStartPre=/sbin/modprobe snd_pcm_oss<br>#ExecStartPre=/sbin/modprobe smsdvb<br><br>ExecStart=/usr/bin/mythbackend --loglevel warning --syslog local7<br>ExecStartPost=/usr/bin/sudo /usr/bin/chown -R yianni:users /var/log/mythtv<br><br>[Install]<br>WantedBy=multi-user.target<br>####################################<br><br>File: /etc/udev/rules.d/11-mythbackend.rules<br>#<br># Create systemd device units for capture devices<br># Then you have to either reboot or enter as root: # udevadm control --reload<br>SUBSYSTEM=="video4linux", TAG+="systemd"<br>SUBSYSTEM=="dvb", TAG+="systemd"<br>####################################<br><br><br><br>Yianni.<br><br>                                            </div></body>
</html>