On Wed, 2008-07-16 at 21:32 +0200, wlanmac wrote: > It seems to work well using the crontab command from within your init > script - assuming your cron is associated with a service. > > in start(): > (crontab -l 2>/dev/null | grep -v $0 > echo "*/10 * * * * $0 checksomething" > ) | crontab - 2>/dev/null > > in stop(): > crontab -l 2>/dev/null | grep -v $0 | crontab - > > and then check for the "checksomething" argument to your init script. It > is self contained, and installed/removed on start/stop.
Why would you add/remove crontab entries on the start/stop of a service? Why not just install the crontab entry on package post-install and be done with it? b.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel