-
Notifications
You must be signed in to change notification settings - Fork 0
/
watchdog.cfg
executable file
·74 lines (56 loc) · 2.6 KB
/
watchdog.cfg
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#/* Copyright (C) 2018-2019 Fully Toasted <[email protected]> - All Rights Reserved
# *
# * This file is part of Toasted Watchdog by Fully Toasted, Toasted Watchdog is Proprietary and Confidential.
# * Unauthorized copying of this file, project, and associated files via any medium is strictly prohibited.
# *
# * Written by Fully Toasted.
# */
set -a
# Only change this if you know what you are doing.
cfgfile=$execdir"/watchdog.cfg"
logfile=$execdir"/logFile"
lock=$execdir"/wlock"
modfile=$execdir"/watchdog.mod"
# Set here something that will let TW identify the pack. The default is okay most of the time.
lookFor=$fpid"/serverfiles"
# Is this watchdog running on a multi-watchdog server (false) or not (true)? Disables the checking for other watchdogs.
# Careful to not have a million watchdogs open.
isSingleInstance="false"
# If "true", the watchdog will enforce this configuration file. Usually you don't need to set this.
enforceCfg="false"
# if "true", watchdog -k will kill all watchdogs instead.
# Will kill everything anyway if you append -f to watchdog -k, eg. watchdog -k -f
killAllWatchdogs="false"
# Will cacheLogins run a command on a new player
doCommandOnNewLogin="false"
# Command cacheLogins will do on a new player
CommandOnNewLogin=""
# How long grabWhitelist will sleep for before syncing the whitelist (in minutes).
whitelistTimeMins="2"
# How long saveHandler will sleep for before doing a save and clean (in minutes).
saveHandlerTimeMins="20"
# Whether or not the saveHandler will clean memory after a save.
doFullGC="true"
# How long cacheLogins will sleep for before checking for a login (in seconds)
cacheTime="10"
# How long sleepRestartScheduler will sleep for before checking for scheduled jobs (in seconds)
restartSleepTime="1000"
# What message will AnnounceHandler append to its usual banter about staff? This can be blank.
expandAnnoucement; # <- ignore this
announcement="§d<Server §dHealth>§r Memory: used $usemem out of $totalmem GBs §7|§r CPU: $loadnow%"
# Delay for the additional annoucement (in seconds)
announcementDelay="12"
# Name of the admin that protectAdmin will protect
adminName="yagoply"
# Select which modules the watchdog is going to load when it starts
if [ "$isModLoadingPhase" == "true" ]; then
# Define which modules to load here
# format -> modulename ; for sequential execution
# format -> modulename & for parallel execution
serverRestartScheduler &
saveHandler &
announceHandler &
grabWhitelist &
# cacheLogins &
fi