Hi All, I wrote a quick and dirty util for shutting down JAMES. Figured I'd share it just in case its of interest.
To use it download: http://www.superlinksoftware.com/killjames.jar Create a script like this: ------/etc/rc.d/init.d/james------------------------------- #! /bin/sh start(){ echo "starting james.." su -l root -c '/root/james/bin/run.sh' & } stop(){ echo "stopping james.." su -l root -c '/root/james/bin/shutdown.sh' } restart(){ stop sleep 2 start } ------shutdown.sh----------------------------------------------- And a script like this: java -cp /root/james/bin/killjames.jar de.mud.telnet.JamesKiller localhost rootpassword -------------------------------------------------------------- assumptions: 1. admin is on port 4555 (otherwise change/recompile JamesKiller) 2. root user is "root" 3. killjames.jar is in /root/james with the associated "shutdown.sh" script 4. you're running james as root (tsk tsk tsk) -------------------------------------------------------------- WARNING WARNING if you have port 4555 open and you run this from a remote server your james admin password will be sent in clear text over the internet and everyone and every script kiddie and his younger brother will hack your mail server. --------------------------------------------------------------- Hope this is useful, if not...sorry. -Andy PS You may consider it distributed under the terms of the GPL (I'm not a GPL fanatic, its just I used GPL code, its not worth my time to rewrite a telnet handler/etc just to distribute it under a less sucky license). I ripped this code off: http://javassh.org/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
