View difference between Paste ID: sdag30Kv and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | #!/bin/bash |
2 | ||
3 | . /etc/rc.conf | |
4 | . /etc/rc.d/functions | |
5 | ||
6 | case "$1" in | |
7 | start) | |
8 | add_daemon smtpd | |
9 | /usr/bin/smtpd | |
10 | ;; | |
11 | stop) | |
12 | killall -s 9 smtpd | |
13 | rm_daemon smtpd | |
14 | ;; | |
15 | restart) | |
16 | $0 stop | |
17 | sleep 2 | |
18 | $0 start | |
19 | ;; | |
20 | *) | |
21 | echo "usage: $0 {start|stop|restart}" | |
22 | esac |