Guest User

Untitled

a guest
Oct 20th, 2014
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/sbin/runscript
  2.  
  3. depend() {
  4.     need net
  5.     use dns logger antivirus
  6.     provide mta
  7. }
  8.  
  9. start() {
  10.     ebegin "Starting sendmail"
  11.     /usr/sbin/sendmail ${SENDMAIL_OPTS} > /dev/null 2>&1
  12.     /usr/sbin/sendmail ${CLIENTMQUEUE_OPTS} > /dev/null 2>&1
  13.     eend $?
  14. }
  15.  
  16. stop() {
  17.     ebegin "Stopping sendmail"
  18.     kill ${KILL_OPTS} `head -n 1 /var/run/sendmail.pid`
  19.     kill ${KILL_OPTS} `head -n 1 /var/spool/clientmqueue/sm-client.pid`
  20.     eend $?
  21. }
Advertisement
Add Comment
Please, Sign In to add comment