Date: Thu, 2 Apr 2020 14:00:08 +0200 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, tom@hur.st Subject: Re: svn commit: r530275 - in head/sysutils/checkrestart: . files Message-ID: <b5e76d0b-b3cf-0c02-10fa-db607eab1df8@FreeBSD.org> In-Reply-To: <202004021151.032BpOMI028447@repo.freebsd.org> References: <202004021151.032BpOMI028447@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On 4/2/20 1:51 PM, Fernando ApesteguĂa wrote: > Author: fernape > Date: Thu Apr 2 11:51:24 2020 > New Revision: 530275 > URL: https://svnweb.freebsd.org/changeset/ports/530275 > > Log: > sysutils/checkrestart: Update to 0.5.0 ... > Added: head/sysutils/checkrestart/files/checkrestart.in > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/sysutils/checkrestart/files/checkrestart.in Thu Apr 2 11:51:24 2020 (r530275) > @@ -0,0 +1,70 @@ > +#!/bin/sh > +# $FreeBSD$ > + > +if [ -r /etc/defaults/periodic.conf ]; then > + . /etc/defaults/periodic.conf > + source_periodic_confs > +fi > + > +: "${daily_checkrestart_enable:=NO}" > +: "${daily_checkrestart_weekdays:=1234567}" # Days of the week to run, Monday=1 > +: "${daily_checkrestart_users:=}" # User names or IDs to check > +: "${daily_checkrestart_jails:=}" # Jail names or IDs to check > +: "${daily_checkrestart_procs:=}" # Process names or IDs to check > + > +checkrestartcmd=/usr/local/bin/checkrestart This should probably utilize %%PREFIX%%. > + > +case "${daily_checkrestart_enable}" in > + [Yy][Ee][Ss]) Please use checkyesno from rc.subr(8) instead. Cheers, Mateusz Piotrowski
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b5e76d0b-b3cf-0c02-10fa-db607eab1df8>