Files
Cinderwild/server/com.emberwild.server.plist

51 lines
1.7 KiB
Plaintext

<?xml version="1.0" encoding="UTF-8"?>
<!--
Emberwild dedicated server as a launchd agent (macOS): starts when you log
in, and restarts if it stops.
1. Edit the two paths below (the game folder, and your user name in the log
path) if yours differ.
2. Copy it: cp server/com.emberwild.server.plist ~/Library/LaunchAgents/
3. Start it: launchctl load -w ~/Library/LaunchAgents/com.emberwild.server.plist
Stop it: launchctl unload ~/Library/LaunchAgents/com.emberwild.server.plist
Log: tail -f ~/Library/Logs/emberwild-server.log
server.json and the world are in
~/Library/Application Support/Godot/app_userdata/Emberwild/server/
For admin commands, join the game and use chat (/help), or edit server.json
and stop/start it. (For a console, run server/run_server.sh in Terminal
instead.)
-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.emberwild.server</string>
<key>ProgramArguments</key>
<array>
<string>/Users/home/valheimlike/server/run_server.sh</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/home/valheimlike</string>
<key>EnvironmentVariables</key>
<dict>
<!-- launchd's PATH is minimal: point at Godot directly. -->
<key>GODOT</key>
<string>/Applications/Godot.app/Contents/MacOS/Godot</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>ThrottleInterval</key>
<integer>15</integer>
<key>StandardOutPath</key>
<string>/Users/home/Library/Logs/emberwild-server.log</string>
<key>StandardErrorPath</key>
<string>/Users/home/Library/Logs/emberwild-server.log</string>
</dict>
</plist>