From owner-freebsd-questions@freebsd.org Fri Apr 10 19:25:47 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 093402C6916 for ; Fri, 10 Apr 2020 19:25:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 48zSfL1JLJz4SBf for ; Fri, 10 Apr 2020 19:25:45 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.be-well.ilk.org (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id BB9B733C06; Fri, 10 Apr 2020 15:25:33 -0400 (EDT) Received: by lowell-desk.be-well.ilk.org (Postfix, from userid 1147) id 106A614F8BAF; Fri, 10 Apr 2020 15:25:31 -0400 (EDT) From: Lowell Gilbert To: Jos Chrispijn Cc: freebsd-questions@freebsd.org Subject: Re: Cron config for ipfw table References: Reply-To: freebsd-questions@freebsd.org Date: Fri, 10 Apr 2020 15:25:31 -0400 In-Reply-To: (Jos Chrispijn's message of "Fri, 10 Apr 2020 13:51:51 +0200") Message-ID: <44blnzta6s.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 48zSfL1JLJz4SBf X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-questions-local@be-well.ilk.org has no SPF policy when checking 23.30.133.173) smtp.mailfrom=freebsd-questions-local@be-well.ilk.org X-Spamd-Result: default: False [0.55 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_MEDIUM(-0.45)[-0.454,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.13)[-0.133,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ilk.org]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:23.30.0.0/15, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.13)[ip: (0.15), ipnet: 23.30.0.0/15(1.21), asn: 7922(-0.64), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2020 19:25:47 -0000 Jos Chrispijn 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?