On Sun, Jul 18, 2010 at 10:39 PM, Niklas Gustavsson
<[email protected]> wrote:
> As mentioned earlier, we should be looking into creating
> out-of-the-box start scripts. But, I don't know when that will be.
Here's a temporary init.d script that you could use (you will have to
change some paths). This is not what we want in the long run, but
might for now.
/niklas
===============
#!/bin/sh
# Example init.d script to start and stop Apache FtpServer
case "$1" in
start)
/opt/ftpserver/bin/ftpd.sh file:///opt/ftpserver/res/conf/ftpd-typical.xml &
;;
stop)
killall -g ftpd.sh
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac