Re: Next reboot script execution framework
On Mon, 04 Oct 2004, Josselin Mouette wrote:
> Le dimanche 03 octobre 2004 à 17:54 +0200, Jérôme Warnier a écrit :
> > Is there a framework for executing once a script at next reboot in
> > Debian (Sarge|Sid)? Any idea of a "clean" way to do it?
>
> A nice way to do it would be to add a "boot" directive to atd's syntax.
> Then you could do something like "echo some/script | at boot+5min".
I think fcron can do it. It certainly has @boot directives, but you would
need to tell it to *only* run at @boot.
Do notice that this would be a fcron boot (i.e. when it is
started/restarted).
Otherwise, drop a /etc/init.d script with a link in rcS.d to call whatever
you need using run-parts, for example...
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: