mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Instructions: 1. In SQL, create an account called "srb2_ms" @ "localhost" (or your hostname). 2. Grant the account full priviledges to "srb2_ms" (the database). 3. Compile, and run using the sh script provided. That's all I'm telling you, I don't want this to become rampant.
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh -e
 | 
						|
#
 | 
						|
# SRB2 MasterServer - start up the masterserver
 | 
						|
#
 | 
						|
 | 
						|
# Get LSB functions
 | 
						|
. /lib/lsb/init-functions
 | 
						|
#. /etc/default/rcS
 | 
						|
 | 
						|
#SRB2MS=/usr/local/bin/masterserver
 | 
						|
SRB2MS=./server
 | 
						|
SRB2MS_PORT=28900
 | 
						|
 | 
						|
# Check that the package is still installed
 | 
						|
[ -x $SRB2MS ] || exit 0;
 | 
						|
 | 
						|
case "$1" in
 | 
						|
	start)
 | 
						|
		log_begin_msg "Starting SRB2MS...\n"
 | 
						|
		umask 002
 | 
						|
		if exec $SRB2MS $SRB2MS_PORT & then
 | 
						|
			log_end_msg 0
 | 
						|
		else
 | 
						|
			log_end_msg $?
 | 
						|
		fi
 | 
						|
	;;
 | 
						|
 | 
						|
	stop)
 | 
						|
		log_begin_msg "Stopping SRB2MS...\n"
 | 
						|
		if killall $SRB2MS -q & then
 | 
						|
			log_end_msg 0
 | 
						|
		else
 | 
						|
			log_end_msg $?
 | 
						|
		fi
 | 
						|
	;;
 | 
						|
 | 
						|
	restart|force-reload)
 | 
						|
		"$0" stop && "$0" start
 | 
						|
	;;
 | 
						|
 | 
						|
	*)
 | 
						|
	echo "Usage: $0 {start|stop|restart|force-reload}"
 | 
						|
		exit 1
 | 
						|
	;;
 | 
						|
esac
 | 
						|
 | 
						|
exit 0
 |