Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ mv ~/teeworlds-tw-plus /opt/
- $ mv ~/teeworlds-bomb /opt/
- $ useradd -c 'teeworlds-tw-plus' -d /opt/teeworlds-tw-plus -m -r -s /usr/sbin/nologin teeworlds-tw-plus
- $ useradd -c 'teeworlds-bomb' -d /opt/teeworlds-bomb -m -r -s /usr/sbin/nologin teeworlds-bomb
- $ cat /etc/systemd/system/teeworlds-tw-plus@.service
- [Unit]
- Description=teeworlds-tw-plus server with %i.cfg config file
- After=syslog.target network.target
- [Service]
- User=teeworlds-tw-plus
- WorkingDirectory=/opt/teeworlds-tw-plus
- ExecStart=/opt/teeworlds-tw-plus/tw+_srv -f %i.cfg
- Restart=always
- RestartSec=10
- [Install]
- WantedBy=multi-user.target
- $ cat /etc/systemd/system/teeworlds-bomb@.service
- [Unit]
- Description=teeworlds-bomb server with %i.cfg config file
- After=syslog.target network.target
- [Service]
- User=teeworlds-bomb
- WorkingDirectory=/opt/teeworlds-bomb
- ExecStart=/opt/teeworlds-bomb/teeworlds_srv -f %i.cfg
- Restart=always
- RestartSec=10
- [Install]
- WantedBy=multi-user.target
- $ systemctl start teeworlds-tw-plus@ctf teeworlds-tw-plus@ictf teeworlds-tw-plus@gctf teeworlds-tw-plus@ctf64
- $ systemctl start teeworlds-bomb@bomb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement