Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 7th, 2012  |  syntax: Bash  |  size: 0.27 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data