From fda43d1e9ea7f0c792d1e2b2b3b0f92b79c63378 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Sun, 3 Nov 2024 03:58:18 +0530 Subject: [PATCH] HL2DM systemd unit file systemd unit file for Half Life 2 Deathmatch Requires further configuration for environment safety, isolation, instances Signed-off-by: Pratyush Desai --- dist/systemd/hl2dm.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dist/systemd/hl2dm.service diff --git a/dist/systemd/hl2dm.service b/dist/systemd/hl2dm.service new file mode 100644 index 0000000..8f0a7a7 --- /dev/null +++ b/dist/systemd/hl2dm.service @@ -0,0 +1,12 @@ +[Unit] +Description=Half-Life 2 Deathmatch Server +After=network.target + +[Service] +ExecStart=/opt/hl2dm/Steam/hl2dm/srcds_run -game hl2mp +sv_password bruh +mp_teamplay 1 +maxplayers 8 +map dm_runoff +WorkingDirectory=/opt/hl2dm/Steam/hl2dm +Restart=on-failure +User=hl2dm + +[Install] +WantedBy=multi-user.target \ No newline at end of file