Cron config for ipfw table
freebsd at edvax.de
Fri Apr 10 20:08:56 UTC 2020
On Fri, 10 Apr 2020 15:25:31 -0400, Lowell Gilbert wrote:
> Jos Chrispijn <bsduser at cloudzeeland.nl> writes:
> > I have added a line to my crontab that defines running a script on reboot:
> > @reboot bash /root/cronjobs/reboot.sh &
> > This (bash) .sh script should add an updated ipfw table (preventing I
> > have to run his action manually) but unfortunately no script is
> > executed on reboot.
> > - script is executable
> > - no action is mentioned in /var/log/cron
> > Can you tell me what I do wrong here? Perhaps scheduling this action
> > _after_ reboot would be the solution?
> Is there any reason that you can't use the system's standard ipfw script
> for that?
Or at least the system's standard scripting shell, /bin/sh?
(Maybe you're using extended bash non-sh functionality that
requires bash... if not, using plain sh makes things easier.)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions