How do i set Linux to start all server maps?
Printable View
How do i set Linux to start all server maps?
You mean like making PW a "service"? Funny you ask, I'm already doing that for my next release/update :wink:
So, using this "template" create a 'script' for your service and place it in /etc/init.d/ :
then use update-rc.d to make or remove it as a 'service'Code:#!/bin/sh
case "$1" in
start)
# do start stuff here
echo " * Starting "
;;
stop)
# do stop stuff here
echo " * Stopping "
;;
restart)
# do re-start stuff here
echo " * Restarting "
;;
*)
echo "Usage $0 [start|stop|restart]"
exit 1
esac
exit 0