aboutsummaryrefslogtreecommitdiffstats
path: root/net/gnu-finger/files/fingerd.sh.sample
blob: ef6b4fff34cf642d3506c36209ed389771f5a69f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

case $1 in
start)
    if [ -x /usr/local/libexec/fingerd -a -f /usr/local/etc/fingerdir/serverhost ]; then
        /usr/local/libexec/fingerd
        echo ' gnu-fingerd'
    fi
    ;;
stop)
    killall fingerd && echo -n ' gnu-fingerd'
    ;;
*)
    echo "Usage: `basename $0` {start|stop}" >&2
    exit 64
    ;;
esac

exit 0