I'm currently setting up a raspberry pi running Debian wheezy as an IRC server. It runs two programs as a regular user on boot - ngircd and atheme.
ngircd and atheme both log to
ngircd is started from the executable(
) itself, as is Atheme (
/home/user/atheme/bin/atheme-services). Manually starting the programs as the user from a terminal works with no issues.
When I try to start ngircd (using the location its installed in) from cron, it simply doesn't start -
/var/log/syslog says that the cron job ran, but nothing happens, there are no error messages, or any ngirc related logs at all. Atheme starts fine.
However if i create a script that does nothing but run ngird (using the same path i used earlier), and add that to cron, it works fine (as does running it directly). Why isn't ngircd starting from cron?
Its not a big issue, but it does make the system slightly messier than I'd like. Its also strange that the two programs behave differently