[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Run a small script at shutdown/reboot



On 02/18/2014 05:57 AM, Jonathan Dowland wrote:
> If you have cron on your machine, I think the easiest thing to do is to
> use the '@reboot' cron time specification, either in /etc/crontab, a
> file in /etc/cron.d or root's personal crontab. e.g.
> 
>     @reboot /usr/local/bin/foobar.sh
> 
> assuming that's where the script is and it's +x

Perfect, thanks Jonathan that's what I was looking for.

Jon


Reply to: