Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo "Killing XMail"
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo "Starting XMail"
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to