Date: Fri, 10 Apr 2020 22:08:43 +0200 From: Polytropon <freebsd@edvax.de> To: freebsd-questions@freebsd.org Cc: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>, Jos Chrispijn <bsduser@cloudzeeland.nl> Subject: Re: Cron config for ipfw table Message-ID: <20200410220843.11cc232c.freebsd@edvax.de> In-Reply-To: <44blnzta6s.fsf@be-well.ilk.org> References: <dba61fc0-ca97-d066-06f7-61273e80765b@cloudzeeland.nl> <44blnzta6s.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Apr 2020 15:25:31 -0400, Lowell Gilbert wrote: > Jos Chrispijn <bsduser@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.) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200410220843.11cc232c.freebsd>