mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 18:56:17 +01:00
add basic systemd service monitoring (#1153)
Co-authored-by: Shelby Tucker <shelby.tucker@gmail.com>
This commit is contained in:
@@ -71,3 +71,26 @@ export enum ConnectionType {
|
||||
}
|
||||
|
||||
export const connectionTypeLabels = ["", "SSH", "WebSocket"] as const
|
||||
|
||||
/** Systemd service state */
|
||||
export enum ServiceStatus {
|
||||
Active,
|
||||
Inactive,
|
||||
Failed,
|
||||
Activating,
|
||||
Deactivating,
|
||||
Reloading,
|
||||
}
|
||||
|
||||
export const ServiceStatusLabels = ["Active", "Inactive", "Failed", "Activating", "Deactivating", "Reloading"] as const
|
||||
|
||||
/** Systemd service sub state */
|
||||
export enum ServiceSubState {
|
||||
Dead,
|
||||
Running,
|
||||
Exited,
|
||||
Failed,
|
||||
Unknown,
|
||||
}
|
||||
|
||||
export const ServiceSubStateLabels = ["Dead", "Running", "Exited", "Failed", "Unknown"] as const
|
||||
|
||||
Reference in New Issue
Block a user