pwcheck doesn't work after system restart

Patrick Morris pmorris at wilshire.com
Thu May 22 02:05:16 EDT 2003


Have you tried just running "/usr/sbin/pwcheck" to see if you get any 
helpful output from it (possilbly as the "cyrus" user)? It does, indeed, 
look like that's dying right as it starts up...  running it alone might 
help figure out why.

Stewart wrote:

> the /etc/init.d/pwcheck script is (in part)
>
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/sbin/pwcheck
> NAME=pwcheck
> DESC="Cyrus pwcheck daemon"
>
> test -f $DAEMON || exit 0
>
> set -e
>
> # Now we need to check where /usr/sbin/pwcheck points
> PWCHECK_DEST=`ls -lL /usr/sbin/pwcheck`
> PWCHECK_STANDARD=`ls -l /usr/sbin/pwcheck_standard | sed "s/_.*//g"`
> PWCHECK_PAM=`ls -l /usr/sbin/pwcheck_pam | sed "s/_.*//g"`
>
> if [ "$PWCHECK_DEST" = "$PWCHECK_STANDARD" ]; then
>                 PWCHECK="STANDARD"
>                 DESC="Cyrus standard pwcheck daemon"
>         else
>                 PWCHECK="PAM"
>                 DESC="Cyrus PAM pwcheck daemon"
> fi
>
>
> case "$1" in
>   start)
>         echo -n "Starting $DESC: "
>         if [ "$PWCHECK" = "STANDARD" ]; then
>                         start-stop-daemon --start --quiet --background 
> --chuid cyrus --exec $DAEMON
>                 else
>                         start-stop-daemon --start --quiet --background 
> --exec $DAEMON
>         fi
>         echo "$NAME."
>         ;;








More information about the Info-cyrus mailing list