Apps :: MyCron logfile



Is there  a trick to get a logfile for MyCron without modifying /etc/init.d/dsl-fonctions (and putting it in filetool.lst)? I dont find this way very clean.
/etc/init.d/dsl-config ! Sorry...
Add
"killall /usr/local/bin/MyCron"
and
"/usr/bin/nohup /usr/local/bin/MyCron -i"
to either /opt/bootlocal.sh
or even .xinitrc

But bootlocal.sh is prefered.

Quote
to either /opt/bootlocal.sh
or even .xinitrc

But bootlocal.sh is prefered.

I know a lot (most?) users only run in X and technically starting such processes from .xinitrc may work, but it's a really bad idea to use .xinitrc for spawning daemons or processes unrelated to the X environment. No X, whether intentional or from a crash, means daemons or child processes started from .xinitrc will cease to run. Or worse, they're not stopped correctly or "gracefully" while doing something. May not be as bad with cron (as long as it's not executing something) as it is for other things like a printer daemon or sshd.

(Edit: Changed ssh to sshd for clarification, though some also prefer to ssh from console so as to not tie connection to another machine to an X session.)


original here.