1#!/bin/sh 2# 3# $NetBSD: pwcheck,v 1.4 2002/03/22 04:33:59 thorpej Exp $
| 1#!/bin/sh 2# 3# $NetBSD: pwcheck,v 1.4 2002/03/22 04:33:59 thorpej Exp $
|
4# $FreeBSD: head/etc/rc.d/pwcheck 98184 2002-06-13 22:14:37Z gordon $
| 4# $FreeBSD: head/etc/rc.d/pwcheck 124616 2004-01-17 10:16:38Z mtm $
|
5# 6 7# PROVIDE: pwcheck 8# REQUIRE: mountcritremote syslogd 9# BEFORE: DAEMON
| 5# 6 7# PROVIDE: pwcheck 8# REQUIRE: mountcritremote syslogd 9# BEFORE: DAEMON
|
10# KEYWORD: FreeBSD NetBSD
| 10# KEYWORD: FreeBSD
|
11 12. /etc/rc.subr 13 14name="pwcheck" 15start_cmd="pwcheck_start" 16stop_cmd=":" 17 18pwcheck_start() 19{ 20 # check the password temp/lock file 21 # 22 if [ -f /etc/ptmp ]; then 23 logger -s -p auth.err \ 24 "password file may be incorrect -- /etc/ptmp exists" 25 fi 26} 27 28load_rc_config $name 29run_rc_command "$1"
| 11 12. /etc/rc.subr 13 14name="pwcheck" 15start_cmd="pwcheck_start" 16stop_cmd=":" 17 18pwcheck_start() 19{ 20 # check the password temp/lock file 21 # 22 if [ -f /etc/ptmp ]; then 23 logger -s -p auth.err \ 24 "password file may be incorrect -- /etc/ptmp exists" 25 fi 26} 27 28load_rc_config $name 29run_rc_command "$1"
|