User Tools

Site Tools


games:quake:setup_a_local_quakejs_server:create_a_quakejs_service

This is an old revision of the document!


Games - Quake - Setup a local QuakeJS server - Create a QuakeJS service

Install daemonize

Used in the init.d script.

sudo apt install daemonize

Create the Service Script

Copy the service script to where it goes:

sudo cp ~/quakejs/init.d/quakejs /etc/init.d/quakejs

Edit the startup script

Edit the /etc/init.d/quakejs file, change:

/etc/init.d/quakejs
daemonize -v -p /var/run/$prog.pid -c /home/quake/quakejs -u quake /usr/bin/node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg

to

/etc/init.d/quakejs
daemonize -v -p /var/run/$prog.pid -c /root/quakejs /usr/bin/node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg

NOTE: This setup has Quake running in a Container, so no need to have a separate user account.

  • Therefore changing this to root.

Enable the Service Script

sudo update-rc.d quakejs defaults

Test

sudo systemctl start quakejs
systemctl status quakejs

NOTE: Now try to connect to the server.


Complete

Whenever your quakejs server boots up it will automatically start the quakejs game server and Apache2 webserver.

When a computer on your LAN visits http://quakejs/ they'll automatically download the files they need from http://quakejs/assets/ and then connect to the QuakeJS server at quakejs:27960.

Have people point their browsers to http://quakejs/ and enjoy.

NOTE: Instead of http://quakejs/ in the above, try with the http://192.168.1.136 where that is the IP address of the server.

games/quake/setup_a_local_quakejs_server/create_a_quakejs_service.1625569215.txt.gz · Last modified: 2021/07/06 11:00 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki