Author Topic: FreeBSD + rc.d + script  (Read 1248 times)

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
FreeBSD + rc.d + script
« on: March 09, 2009, 10:08:51 PM »
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.

lilb990

  • Autococker
  • Posts: 644
Re: FreeBSD + rc.d + script
« Reply #1 on: March 10, 2009, 02: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.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: FreeBSD + rc.d + script
« Reply #2 on: March 10, 2009, 02: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.

lilb990

  • Autococker
  • Posts: 644
Re: FreeBSD + rc.d + script
« Reply #3 on: March 10, 2009, 02: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?