You are not logged in.
Pages: 1
Hi,
I would like some input on how I should use cronjobs
I'd like one job (rsync script to mirror a share from another server)
The second for restarting ushare (when restarting ushare it builds up new content that has arrived in MediaLibrary)
Shall I be using crontab -e as root and specify time and path to .sh file (/usr/local/bin/rsync.sh) or shall I put the .sh file inside like cron.daily (will it run at 00:00 am then?)
Am I suppose to use crontab -e manually if I would like some more options and stuff, otherwise I use the folders?
How can I restart a service then? ushare at 02:00 am?
Last edited by ftornell (2010-10-06 06:51:15)
[ logicspot.NET | mempad.org ]
Archlinux x64
Offline
Offline
Offline
Read that one but did'nt understand everything.
<minute> <hour> <day_of_month> <month> <day_of_week> <command>
* 1 * * * /etc/rc.d/ushare restart
will that work?
[ logicspot.NET | mempad.org ]
Archlinux x64
Offline
itsbrad212 wrote:Read that one but did'nt understand everything.
<minute> <hour> <day_of_month> <month> <day_of_week> <command>
* 1 * * * /etc/rc.d/ushare restartwill that work?
It should. What I like to do is simply create shell scripts and place them in /etc/cron.hourly, removing the need for editing crontabs and such.
Offline
Beware though. There is a longstanding open bug with @hourly and @daily jobs executing multiple times or not at all
https://bugs.archlinux.org/task/18681
Probably safer to explicitly edit the crontab until it is fixed.
Offline
Pages: 1