LinHES Forums http://forums.linhes.org/ |
|
cron http://forums.linhes.org/viewtopic.php?f=21&t=22594 |
Page 1 of 1 |
Author: | stinga [ Sun Apr 15, 2012 6:15 am ] |
Post subject: | cron |
so cron does not seem to work with the user mythtv... cron is run from runit (who knows why) with all the output piped to /dev/null (useful) (I am not sure if the is a arch think or a linhes thing but it seems daft to have another process running that runs cron which it designed to run as a daemon) I removed the runit version and called /etc/rc.d/crond start from /etc/runit/1.local, that's a bit better,still not good though... So I stopped it and ran it with debug, lots of good stuff and it seems to work with user mythtv, not sure what or why and maybe it was working, but I was trying to run mythfilldatabase since it does not seem to work from the backend. See another post on this problem. Of course I thought it would be nice to have errors emailed to me but sendmail is not installed or postfix or anything it seems... I did find sendmail.pl <good> but it uses perl libs and they are not installed on linhes <boo>. All this grief is starting to drive me towards doing my own mythtv box and not using linhes, but I do love the simplicity of the install and running of the box and the fact that most things work most of the time. Compiling stuff is a pain and general development, I have tried to set up a dev area but that seems hard as well, almost like it is done on purpose. Anyway enough ranting at least mythfilldatabase is working again, now on to the xine freezing when you hit the exit button. ![]() |
Author: | jams [ Sat Apr 21, 2012 7:41 pm ] |
Post subject: | Re: cron |
Cron does in fact work with the user mythtv, I just tried it and it worked without issue. One of the main reasons cronjobs fail is because of a missing PATH,working environment or simply messed up the crontab entry. As far as the difference between running cron from 1.local or "runit" it makes little difference. Either way, they are started and under the control of the runit init system. The main difference is that when run from 1.local cron will not restart if it's killed off. Quote: seems daft to have another process running that runs cron which it designed to run as a daemon Well thats pretty much included in the definition of ANY init system, to start a process thats designed to run as a daemon. All linux distros do this. Quote: Of course I thought it would be nice to have errors emailed to me but sendmail is not installed or postfix or anything it seems... I did find sendmail.pl <good> but it uses perl libs and they are not installed on linhes <boo>. This comes up from time to time, and for the most part installing a fullblown MTA just isn't required for a LinHES machine. If sendmail.pl is missing perl libs, please file a ticket as to which ones so they can be added. Quote: I have tried to set up a dev area but that seems hard as well, almost like it is done on purpose. I can assure you that nothing was put in place to make setting up a dev environment hard. Any LinHES machine can be used for dev work. Just install base-devel group, grab a copy of the LinHES PKGBUILD (either a static copy of git) and your well on your way. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |