svn commit: r530275 - in head/sysutils/checkrestart: . files

Mateusz Piotrowski 0mp at FreeBSD.org
Thu Apr 2 12:00:12 UTC 2020


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



More information about the svn-ports-all mailing list