Re-implemented server state machine. Cleaned up code
TODO: Handle trigger errors
This commit is contained in:
10
MoonlightServers.Daemon/Enums/ServerState.cs
Normal file
10
MoonlightServers.Daemon/Enums/ServerState.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MoonlightServers.Daemon.Enums;
|
||||
|
||||
public enum ServerState
|
||||
{
|
||||
Offline = 0,
|
||||
Starting = 1,
|
||||
Online = 2,
|
||||
Stopping = 3,
|
||||
Installing = 4
|
||||
}
|
||||
13
MoonlightServers.Daemon/Enums/ServerTrigger.cs
Normal file
13
MoonlightServers.Daemon/Enums/ServerTrigger.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace MoonlightServers.Daemon.Enums;
|
||||
|
||||
public enum ServerTrigger
|
||||
{
|
||||
Start = 0,
|
||||
Stop = 1,
|
||||
Restart = 2,
|
||||
Kill = 3,
|
||||
Reinstall = 4,
|
||||
NotifyOnline = 5,
|
||||
NotifyContainerDied = 6,
|
||||
NotifyInstallContainerDied = 7
|
||||
}
|
||||
Reference in New Issue
Block a user