#!/sbin/sh # # OS Solaris 2.5.1 # /etc/rc*.d/S**qmail - Start/Stop the qmail daemon # # Written 01.05.99 by Alexey Abramov, e-mail: levsha@ruxy.org.ru # PATH=/usr/bin:/bin case $1 in 'start') csh -cf '/var/qmail/rc &' ;; 'stop') pid=`/usr/bin/ps -e | /usr/bin/grep qmail-send | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` if test "$pid" then kill $pid fi ;; *) echo "usage: /etc/rc2.d/S90qmail {start|stop}" ;; esac