Digital Paint Discussion Board

Paintball 2: The Game => Server Discussion => Topic started by: sk89q on March 10, 2009, 12:08:51 AM

Title: FreeBSD + rc.d + script
Post by: sk89q on March 10, 2009, 12:08:51 AM
This is how I got Paintball server(s) to run on FreeBSD automatically (or in theory; haven't restarted the server to see yet!). It automatically changes to another group and user so that the game doesn't run as root (as rc.d runs under root).

http://github.com/sk89q/pballserver/tree/master

The Python script (pballserver) automatically checks whether the config really exists and gets a map from the rotation list and loads it as the first map. The scripts (except for the one in rc.d, which goes into rc.d) belong in the Paintball 2 directory, which should not have spaces in its path.

Kind of overkill, but hey, it works.
Title: Re: FreeBSD + rc.d + script
Post by: lilb990 on March 10, 2009, 04:14:02 PM
Can you explain what this does or someone explain cause i have no idea what it is but it sounds pretty cool.
Title: Re: FreeBSD + rc.d + script
Post by: ViciouZ on March 10, 2009, 04:26:21 PM
FreeBSD is a free open source operating system. sk89q has succeeding in making a script allowing reliable servers to be run on FreeBSD and restart when the host machine does.
Title: Re: FreeBSD + rc.d + script
Post by: lilb990 on March 10, 2009, 04:27:32 PM
FreeBSD is a free open source operating system. sk89q has succeeding in making a script allowing reliable servers to be run on FreeBSD and restart when the host machine does.

So basically this script is helping out servers when they crash or something like that?