Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2013 23:52:00 +0000
From:      dgmm <freebsd01@dgmm.net>
To:        freebsd-questions@freebsd.org
Subject:   System reboots ~3am during daily periodic 450.status-security run
Message-ID:  <201312012352.01075.freebsd01@dgmm.net>

Next in thread | Raw E-Mail | Index | Archive | Help
My system reboots at 3am when /etc/periodic/daily/450.status-security

I've confirmed this by running the above script manually.  The system did not 
reboot when manually running any of the other daily scripts.

I'm not seeing anything obvious in log files (although it might help if I knew 
what tolook for and where)

---------------------------------------

%uname -a
FreeBSD amd.asgard.uk 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 
21:34:37 UTC 2013     root@amd64-
builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

---------------------------------------

/etc/periodic/daily %cat 450.status-security 
#!/bin/sh
#
# $FreeBSD: release/9.1.0/etc/periodic/daily/450.status-security 221432 
2011-05-04 12:48:02Z netchild $
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

case "$daily_status_security_enable" in
    [Yy][Ee][Ss])
	echo ""
	echo "Security check:"

	case "$daily_status_security_inline" in
	    [Yy][Ee][Ss])
		export security_output="";;
	    *)
		export security_output="${daily_status_security_output}"
		case "${daily_status_security_output}" in
		    "")
			rc=3;;
		    /*)
			echo "    (output logged separately)"
			rc=0;;
		    *)
			echo "    (output mailed separately)"
			rc=0;;
		esac;;
	esac

	periodic security || rc=3;;

    *)  rc=0;;
esac

exit $rc

---------------------------------------

cat /etc/defaults/periodic.conf 
...
# 450.status-security
daily_status_security_enable="YES"                      # Security check
# See "Security options" below for more options
...
# Security options

# These options are used by the security periodic(8) scripts spawned in
# 450.status-security above.
daily_status_security_inline="NO"             # Run inline ?
daily_status_security_output="root"          # user or /file
daily_status_security_noamd="NO"           # Don't check amd mounts
daily_status_security_logdir="/var/log"      # Directory for logs
daily_status_security_diff_flags="-b -u"      # flags for diff output

---------------------------------------




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201312012352.01075.freebsd01>