freebsd-dev/sbin/init/rc.d/pwcheck
Brad Davis 1135e97b7c Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from
back during BSDCan.

Approved by:	will (mentor)
Differential Revision:	https://reviews.freebsd.org/D16466
2018-07-28 20:36:23 +00:00

29 lines
428 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pwcheck
# REQUIRE: mountcritremote syslogd
# BEFORE: DAEMON
. /etc/rc.subr
name="pwcheck"
desc="Check password file correctness"
start_cmd="pwcheck_start"
stop_cmd=":"
pwcheck_start()
{
# check the password temp/lock file
#
if [ -f /etc/ptmp ]; then
logger -s -p auth.err \
"password file may be incorrect -- /etc/ptmp exists"
fi
}
load_rc_config $name
run_rc_command "$1"