I'm trying to set up an UrT server on an Ubuntu machine with systemd, without screen. I installed urt to /usr/local/bin, which is where I usually put my binaries.
I made a user 'urt' but no home folder because I'm trying to keep /home free of such nonsense.
To cut to the chase, here's my service file:
[Unit]
Description=Urban Terror Server
After=network.target
Before=shutdown.target reboot.target halt.target
[Service]
ExecStart=/usr/local/bin/UrbanTerror43/Quake3-UrT-Ded.x86_64 +set fs_game q3ut4 +set fs_basepath /usr/local/bin/UrbanTerror43 +set fs_homepath /usr/local/bin/UrbanTerror43/ +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg
User=urt
Group=urt
Type=forking
;Restart=on-failure
[Install]
WantedBy=multi-user.target
But when I run it, I get this error:
Sys_Error: Unable to create directory "/home/urt/.q3a", error is No such file or directory(2)
Now, according to this five-year-old thread, setting fs_homepath should force the .q3a folder to be built there, in /usr/local/bin/UrbanTerror43/. That's where I want it.
Everything runs fine if I run the service with User=root, creating the .q3a directory in /root/... but I don't want to run it as root if I don't have to. I'll create the stupid /home/urt folder before I do that.
Most likely, the name of the fs_homepath variable has changed in v43 and I'm just copying old, no-longer-relevant instructions. Is there a way to set the .q3a location in v43?