xref: /freebsd/libexec/rc/rc.d/pwcheck (revision a0ca4af9455b844c5e094fc1b09b1390ffa979fc)
1#!/bin/sh
2#
3#
4
5# PROVIDE: pwcheck
6# REQUIRE: mountcritremote syslogd
7# BEFORE:  DAEMON
8
9. /etc/rc.subr
10
11name="pwcheck"
12desc="Check password file correctness"
13start_cmd="pwcheck_start"
14stop_cmd=":"
15
16pwcheck_start()
17{
18	#	check the password temp/lock file
19	#
20	if [ -f /etc/ptmp ]; then
21		logger -s -p auth.err \
22		    "password file may be incorrect -- /etc/ptmp exists"
23	fi
24}
25
26load_rc_config $name
27
28# doesn't make sense to run in a svcj: config setting
29pwcheck_svcj="NO"
30
31run_rc_command "$1"
32