blob: 4dab1a55e3b083fefa5afae175c9e4d1e42b7366 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/postgrey: start/stop postgrey service
4 #
5
6 case $1 in
7 start)
8 /usr/sbin/postgrey -d --user=postgrey --group=postgrey \
9 --inet=127.0.0.1:60000 \
10 --pidfile=/var/run/postgrey.pid
11 ;;
12 stop)
13 kill `cat /var/run/postgrey.pid`
14 ;;
15 *)
16 echo "usage: $0 [start|stop]"
17 ;;
18 esac
19
20 # End of file
|