-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice
27 lines (23 loc) · 969 Bytes
/
service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
####################################
# Ark Server System Service
#
# This service file is used to start the Ark server on system boot.
# It will also restart the server if it crashes.
# Locate this file in /lib/systemd/system/ark.service if you are using Ubuntu.
####################################
[Unit]
Description=Ark Server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User=ark-server
Group=ark-server
ExecStartPre=/home/ark-server/steamcmd +login anonymous +force_install_dir /home/ark-server/arkserver +app_update 376030 +quit
ExecStart=/home/ark-server/arkserver/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?QueryPort=27015?Port=7777?RCONPort=27020?SessionName=zelraw-server?MaxPlayers=25?AltSaveDirectoryName=ZelTheIslandMap -allcores -server -log
[Install]
WantedBy=multi-user.target