| 1 | [Unit] |
| 2 | Description=Bnetd daemon (pvpgn) |
| 3 | Documentation=man:bnetd |
| 4 | After=local-fs.target |
| 5 | Wants=local-fs.target |
| 6 | After=network.target |
| 7 | After=network-online.target |
| 8 | Wants=network-online.target |
| 9 | After=time-sync.target |
| 10 | |
| 11 | ConditionPathExists=/var/lib/pvpgn/files/ad000001.smk |
| 12 | ConditionPathExists=/var/lib/pvpgn/files/ad000002.mng |
| 13 | ConditionPathExists=/var/lib/pvpgn/files/ad000002.smk |
| 14 | ConditionPathExists=/var/lib/pvpgn/files/icons.bni |
| 15 | ConditionPathExists=/var/lib/pvpgn/files/icons_STAR.bni |
| 16 | ConditionPathExists=/var/lib/pvpgn/files/icons-WAR3.bni |
| 17 | ConditionPathExists=/var/lib/pvpgn/files/IX86ExtraWork.mpq |
| 18 | ConditionPathExists=/var/lib/pvpgn/files/IX86ver1.mpq |
| 19 | ConditionPathExists=/var/lib/pvpgn/files/newbie.save |
| 20 | ConditionPathExists=/var/lib/pvpgn/files/PMACver1.mpq |
| 21 | ConditionPathExists=/var/lib/pvpgn/files/ver-IX86-1.mpq |
| 22 | ConditionPathExists=/var/lib/pvpgn/files/XMACver1.mpq |
| 23 | |
| 24 | |
| 25 | [Service] |
| 26 | Type=simple |
| 27 | ExecStart=/usr/sbin/bnetd --foreground |
| 28 | Restart=on-abnormal |
| 29 | |
| 30 | CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_SYS_BOOT CAP_SYS_RAWIO CAP_AUDIT_* CAP_SYS_PTRACE |
| 31 | InaccessiblePaths=/home |
| 32 | LockPersonality=true |
| 33 | NoNewPrivileges=true |
| 34 | PrivateMounts=true |
| 35 | PrivateTmp=true |
| 36 | ProtectClock=true |
| 37 | ProtectHome=true |
| 38 | ProtectKernelLogs=true |
| 39 | ProtectKernelModules=true |
| 40 | ProtectProc=noaccess |
| 41 | ProtectSystem=full |
| 42 | RestrictRealtime=true |
| 43 | RestrictSUIDSGID=true |
| 44 | SystemCallFilter=~@swap @reboot @module @raw-io @debug @clock |
| 45 | |
| 46 | |
| 47 | [Install] |
| 48 | WantedBy=multi-user.target |