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