add server as a service documentation

This commit is contained in:
2022-04-05 19:37:53 +02:00
parent e38458576d
commit c1c6597555
3 changed files with 68 additions and 0 deletions
+21
View File
@@ -60,6 +60,27 @@ Enjoy !
**NOTE** : Some librairies may be missing, you need to install it one by one (test to launch ./et.x86 and see missing libs)
## Create a systemd service (server creation **ONLY**)
In order to launch the server properly, a systemd service is a right solution instead of the **serverctl** sh script. Todo so :
* put the **[wolfenstein-et.service](./service/wolfenstein-et.service)** file in **/etc/systemd/system** directory (must be **root**)
* replace `<linux_user>` and `<path_to>` placeholder with your configuration
* enable the service (on reboot the service will autostart)
```bash
# as root
systemctl enable wolfenstein-et
```
* put the **[launch_server.bash](./service/launch_server.bash)** wherever you want (do not forget exec rights for your `<linux_user>`)
* start the service
```bash
service wolfenstein-et start
```
* check the service status
```bash
service wolfenstein-et status
```
## Settings
More useful informations : https://wiki.archlinux.org/title/Wolfenstein:_Enemy_Territory