games:quake:setup_a_local_quakejs_server:create_a_quakejs_service
This is an old revision of the document!
Table of Contents
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
games/quake/setup_a_local_quakejs_server/create_a_quakejs_service.1625569505.txt.gz · Last modified: 2021/07/06 11:05 by peter