mirror of
https://github.com/greenseeker/t2server.git
synced 2026-04-24 05:45:22 +00:00
First Commit
This commit is contained in:
commit
8a9f6b6510
17 changed files with 1407 additions and 0 deletions
10
etc/systemd/system/t2bouncer.service
Normal file
10
etc/systemd/system/t2bouncer.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=t2bouncer (restarts t2server at configured time)
|
||||
Wants=t2bouncer.timer
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/t2bouncer
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
etc/systemd/system/t2bouncer.timer
Normal file
10
etc/systemd/system/t2bouncer.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=t2bouncer timer
|
||||
BindsTo=t2server.service
|
||||
|
||||
[Timer]
|
||||
Unit=t2bouncer.service
|
||||
OnCalendar=*:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
36
etc/systemd/system/t2server.service
Normal file
36
etc/systemd/system/t2server.service
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[Unit]
|
||||
Description=Tribes 2 Dedicated Server
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
Wants=t2bouncer.timer
|
||||
Before=t2bouncer.timer
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=TERM=xterm-256color
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
User=t2server
|
||||
CPUAffinity=0
|
||||
ExecStart=/usr/local/bin/t2server
|
||||
ExecStop=/usr/bin/wineserver -k
|
||||
Restart=on-failure
|
||||
RestartSec=15s
|
||||
TimeoutStopSec=60s
|
||||
WorkingDirectory=/opt/t2server/GameData
|
||||
LogsDirectory=t2server
|
||||
|
||||
# Below settings help lock down the service for security
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
SystemCallFilter=@system-service
|
||||
NoNewPrivileges=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectControlGroups=true
|
||||
ProtectClock=true
|
||||
ProtectHostname=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue