aboutsummaryrefslogtreecommitdiffstats
path: root/mail/noattach/files/noattach.sh
blob: 378b8be4e72ff3ca8927cc357f88b30dc36e1b2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# $FreeBSD$
# 
if ! test -x %%PREFIX%%/libexec/noattach
then
    exit 0
fi
case $1 in
start)
    rm -f /var/run/noattach.pid
    %%PREFIX%%/libexec/noattach -p local:/var/run/noattach &&
    echo -n ' noattach'
    ;;
stop)
    killall noattach
    rm -f /var/run/noattach.pid
    ;;
*)
    echo "Usage: $0: [ start | stop ]" 2>&1
    exit 65
    ;;
esac