Re: mythbackend starting before mySQLd
George Galt <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.atrpms.general |
|---|---|
| Message-ID | <CA+-thJMkny+QN6q4m56VmwN_F_y3pdhCwZ_G+z09H-uFocXeYw@mail.gmail.com> |
On Sat, Sep 1, 2012 at 5:18 AM, Paul <[email protected]> wrote: > On Fri 31/08/2012 10:52 PM, The Walters wrote: >>> >>> # daemon --user mythtv $binary $OPTIONS >>> daemon sleep 10; $binary $OPTIONS >> >> should be a space between daemon and sleep. Sorry for the new thread and >> top post on the >> previous message one too many mail programs open. >> >> _______________________________________________ >> atrpms-users mailing list >> [email protected] >> http://lists.atrpms.net/mailman/listinfo/atrpms-users >> > > I just noticed this in the syslog too > > mythbox systemd-tmpfiles[29725]: stat(/run/user/mythtv/gvfs) failed: > Permission denied > > any idea? > > Paul > > > _______________________________________________ > atrpms-users mailing list > [email protected] > http://lists.atrpms.net/mailman/listinfo/atrpms-users Paul: Here is my "mythbackend.service" file, locate at: /lib/systemd/system/mythbackend.service ################################################### # file located at /lib/systemd/system/mythbackend.service # use "systemctl enable mythtbackend.service to load # based on a template from RPMFusion and R.G. Newbury from this thread: # http://www.gossamer-threads.com/lists/mythtv/users/516650?search_string=mythbackend.service%20;#516650 [Unit] Description=MythTV backend service After=network.target mysqld.service # for mythweb: not necessary so 'wants' not 'after' Wants=httpd.service [Service] Type=simple Environment=MYTHTV_HOME=/var/lib/mythtv Environment=MYTHCONFDIR=/var/lib/mythtv Environment=HOME=/var/lib/mythtv # NOTE: using the "mythtv" user, NOT root. User=mythtv # NOTE: if you have other switches you want, insert them below. This # is set to use log files in /var/log/mythtv. Make sure that the # location of the HOME/MYTHCONFIG files, logs and the pid file # are writeable by the user designated above. ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv [Install] WantedBy=multi-user.target ##################################### ## end of file This works fine for me using FC16 x86_64 and Axel's builds. I don't seem to have any permission problems. I don't think I had to set any special permissions on any files. George