Commit Graph

875 Commits

Author SHA1 Message Date
Jason M. Wood
19e89eb49a
Merge pull request #347 from KingBBQ/main
Some checks failed
shellcheck / run-shellcheck (push) Has been cancelled
Adding hook scritps to start, stop and force-stop. The scripts are ex…
2024-10-24 16:41:28 -05:00
KingBBQ
74cb61c78b Added pre-start and pre-stop hooks 2024-09-20 12:58:53 +02:00
KingBBQ
a5f6230de1 Adding hook scritps to start, stop and force-stop. The scripts are executed, if they exists: hooks/post-start.sh - hooks/post-stop.sh 2024-09-04 11:21:12 +02:00
Jason M. Wood
4cbc423a0e
Merge pull request #328 from zanix/backup-prune
Add clean-backups Command
2023-07-07 00:16:04 -05:00
Joshua Clark
9d3524e6f3
Add clean-backups command 2023-06-22 17:59:03 -06:00
Jason M. Wood
d18feeafed
Merge pull request #326 from MinecraftServerControl/backup-cleanup
Split backup cleanup into new function
2023-03-15 14:35:50 -05:00
Jason Wood
4f473206fd
Split backup cleanup into new function 2023-03-14 19:04:49 -05:00
Jason M. Wood
336fb8386f
Merge pull request #320 from sptoothman/patch-1
Updated Makefile with a safety check for user
2022-11-28 21:42:50 -06:00
sptoothman
86bde27736
Updated Makefile with a safety check for user
Added a safety check to see if the user exists when running make install. It was dying on me because the user already existed. Now if the user exists, it reports back the user exists and skips it.
2022-09-28 10:22:02 -05:00
Joshua Clark
915b271f2d
Merge pull request #312 from xathon/rename
Fix renaming a world
2022-04-16 12:54:50 -06:00
Xathon
be5f4b62ec fix missing mkdir in renaming world 2022-04-16 00:38:07 +02:00
Xathon
12a6994053 fix renaming a world 2022-04-12 03:32:58 +02:00
Xathon
168454eaa6 redirect output of find to /dev/null 2022-03-27 05:50:49 +02:00
Jason M. Wood
1045c2fb05
Merge pull request #310 from xathon/variable_cleaning
Clear WORLDS variable at beginning of command handlers
2022-03-17 17:36:48 -05:00
xathon
d08cbc99ee Clear WORLDS variable at beginning of functions 2022-03-17 22:05:53 +01:00
Jason M. Wood
8118d10747
Merge pull request #308 from iammattcoleman/monitor.pid-not-found
suppress error when crash detection is not used
2022-02-14 15:32:29 -06:00
Matt Coleman
7f8b265435 suppress error when crash detection is not used
Check if monitor.pid exists before attempting to read from it.
This prevents the following error from appearing when stopping a server:

cat /opt/mscs/worlds/example/monitor.pid: No such file or directory
2022-02-13 23:06:53 -05:00
Jason M. Wood
039051f9b5
Merge pull request #304 from queria/main
Overviewer settings to use env vars for paths
2022-01-24 13:44:09 -06:00
Jason M. Wood
b34f53c355
Add shebang line 2022-01-03 13:07:18 -06:00
Jason M. Wood
c84d05b324
Add quotes around array too 2022-01-03 13:05:00 -06:00
Jason M. Wood
9b7d74c83b
Add quotes around array too 2022-01-03 13:03:29 -06:00
Jason M. Wood
551a4983e5
Don't use backticks 2022-01-03 13:00:58 -06:00
Jason M. Wood
df68a021b0
Shellcheck: report only errors 2022-01-03 12:55:16 -06:00
Pavel Sedlák
99a78b2bcf Overviewer settings to use env vars for paths
Currently hardcoded paths for overview-settings.py
make it hard to keep the configs in git(...) repo
as they force the server backup/map files to always
be in exact absolute path on the machine.

(While also it cannot be always re-generated
 if user wants to tweak the rendering settings or such.)

For this lets not hardcode absolute paths, only relative,
relative to the environment variables we already have available
in msctl, so we can export them and use them as env vars inside python
settings file.
2021-12-31 12:59:15 +01:00
Jason M. Wood
f1125fb64b
Merge pull request #297 from LanetheGreat/feature/server-service-template
Dynamic Systemd Units using Service Template
2021-06-28 16:58:27 -05:00
Lane Shaw
53bcb39a23
Added mscs@.service template for starting individual servers as systemd units. 2021-06-27 18:40:58 -04:00
Jason M. Wood
ee00f9a5c8
Merge pull request #287 from MinecraftServerControl/automatic-restarts
Add automatic restart on crash
2021-06-03 17:07:06 -05:00
Jason Wood
21cdd21fa4
switch to python3 2021-05-06 13:11:48 -05:00
Jason Wood
2cf086d0ae
switch to python3 2021-05-06 13:08:00 -05:00
Jason M. Wood
f13753c2b2
Merge pull request #288 from MinecraftServerControl/actions
Add ShellCheck functionality through GitHub Actions
2021-05-03 15:45:13 -05:00
Roflicide
8bfef14716 Merge branch 'main' into automatic-restarts 2021-05-01 10:23:10 -04:00
Roflicide
a00bdde808
Create shellcheck-action.yml 2021-04-28 21:41:06 -04:00
Jason Wood
f397a46938
true_value: assume false if value not defined 2021-04-27 18:15:10 -05:00
Roflicide
011eb85142 Merge branch 'automatic-restarts' of github.com:MinecraftServerControl/mscs into automatic-restarts 2021-04-24 22:51:11 -04:00
Roflicide
5ae73f76a2 delete newline at EoF 2021-04-24 22:50:46 -04:00
Roflicide
f53b7766ff add newline at end of file 2021-04-24 21:50:21 -04:00
Roflicide
2097c8150d fix startServerMonitor function and add back in missing vars 2021-04-24 21:47:20 -04:00
Roflicide
fb18c53a0d rebase to main 2021-04-24 00:04:49 -04:00
Roflicide
77caa10441 condense startServerMonitor code 2021-04-23 23:39:55 -04:00
Roflicide
1df05c3e36 add initial old fork 2021-04-23 23:13:30 -04:00
Jason M. Wood
3b5c0e1d89
Output error to STDERR 2021-04-22 16:09:24 -05:00
Jason M. Wood
0064869dae
Make unaccepted EULA a warning rather than failure 2021-04-21 17:02:34 -05:00
Jason Wood
8b68544956
provide error output for invalid true/false value 2021-04-20 21:49:00 -05:00
Jason Wood
6e3b79923d
make default EULA value false 2021-04-20 21:45:04 -05:00
Jason Wood
a953325c79
always use string comparisons in true_value 2021-04-20 21:05:40 -05:00
Jason M. Wood
13444085a5
fix true_value test for numerical values 2021-04-20 20:44:05 -05:00
Jason M. Wood
eaa3210477 Update copyright year 2021-03-16 14:51:47 -05:00
Jason M. Wood
29d21076d7
Merge pull request #274 from MinecraftServerControl/true_value
Add and use method to check true/false values
2021-03-16 14:20:05 -05:00
Jason M. Wood
7791e7850a
Merge pull request #277 from Sehnryr/time_optimisation
querySendPacket runtime optimisation
2021-03-16 14:19:24 -05:00
Youn MÉLOIS
bc2ac577dc
querySendPacket
replacing `sleep 1` with a while loop that checks if the `query.out` is empty or not with a timeout of 1 second
2021-03-15 14:55:23 +01:00