安装Dst到systemd服务

安装Dst到systemd服务

Dstserver.service

[Unit]

Description=Don't Starve Together Server

After=network.target

  

[Service]

Restart=always

Type=simple

WorkingDirectory=/root/dstserver/bin

ExecStart=/root/dstserver/bin/dontstarve_dedicated_server_nullrenderer -persistent_storage_root /root/.klei -conf_dir DoNotStarveTogether -shard Master

StandardOutput=null

  

[Install]

WantedBy=multi-user.target

Dstmon.service

[Unit]

Description=Auto Mon for [Don't Starve Together Server]

After=dst.service

  

[Service]

Restart=always

Type=simple

ExecStart=/bin/bash /root/dstmon.sh

  

[Install]

WantedBy=multi-user.target

Written with StackEdit.

Comments