mirror of
https://github.com/taigrr/systemctl.git
synced 2026-03-09 00:14:38 -07:00
add new properties, socket finder
This commit is contained in:
25
helpers.go
25
helpers.go
@@ -58,6 +58,31 @@ func GetPID(ctx context.Context, unit string, opts Options) (int, error) {
|
||||
return strconv.Atoi(value)
|
||||
}
|
||||
|
||||
func GetSocketsForServiceUnit(ctx context.Context, unit string, opts Options) ([]string, error) {
|
||||
args := []string{"list-sockets", "--all", "--no-legend", "--no-pager"}
|
||||
if opts.UserMode {
|
||||
args = append(args, "--user")
|
||||
}
|
||||
stdout, _, _, err := execute(ctx, args)
|
||||
if err != nil {
|
||||
return []string{}, err
|
||||
}
|
||||
lines := strings.Split(stdout, "\n")
|
||||
sockets := []string{}
|
||||
for _, line := range lines {
|
||||
fields := strings.Fields(line)
|
||||
if len(fields) < 3 {
|
||||
continue
|
||||
}
|
||||
socketUnit := fields[1]
|
||||
serviceUnit := fields[2]
|
||||
if serviceUnit == unit+".service" {
|
||||
sockets = append(sockets, socketUnit)
|
||||
}
|
||||
}
|
||||
return sockets, nil
|
||||
}
|
||||
|
||||
func GetUnits(ctx context.Context, opts Options) ([]Unit, error) {
|
||||
args := []string{"list-units", "--all", "--no-legend", "--full", "--no-pager"}
|
||||
if opts.UserMode {
|
||||
|
||||
@@ -3,6 +3,7 @@ package properties
|
||||
type Property string
|
||||
|
||||
const (
|
||||
Accept Property = "Accept"
|
||||
ActiveEnterTimestamp Property = "ActiveEnterTimestamp"
|
||||
ActiveEnterTimestampMonotonic Property = "ActiveEnterTimestampMonotonic"
|
||||
ActiveExitTimestampMonotonic Property = "ActiveExitTimestampMonotonic"
|
||||
@@ -12,9 +13,13 @@ const (
|
||||
AssertResult Property = "AssertResult"
|
||||
AssertTimestamp Property = "AssertTimestamp"
|
||||
AssertTimestampMonotonic Property = "AssertTimestampMonotonic"
|
||||
Backlog Property = "Backlog"
|
||||
Before Property = "Before"
|
||||
BindIPv6Only Property = "BindIPv6Only"
|
||||
BindLogSockets Property = "BindLogSockets"
|
||||
BlockIOAccounting Property = "BlockIOAccounting"
|
||||
BlockIOWeight Property = "BlockIOWeight"
|
||||
Broadcast Property = "Broadcast"
|
||||
CPUAccounting Property = "CPUAccounting"
|
||||
CPUAffinityFromNUMA Property = "CPUAffinityFromNUMA"
|
||||
CPUQuotaPerSecUSec Property = "CPUQuotaPerSecUSec"
|
||||
@@ -28,6 +33,7 @@ const (
|
||||
CacheDirectoryMode Property = "CacheDirectoryMode"
|
||||
CanFreeze Property = "CanFreeze"
|
||||
CanIsolate Property = "CanIsolate"
|
||||
CanLiveMount Property = "CanLiveMount"
|
||||
CanReload Property = "CanReload"
|
||||
CanStart Property = "CanStart"
|
||||
CanStop Property = "CanStop"
|
||||
@@ -40,17 +46,26 @@ const (
|
||||
ConfigurationDirectoryMode Property = "ConfigurationDirectoryMode"
|
||||
Conflicts Property = "Conflicts"
|
||||
ControlGroup Property = "ControlGroup"
|
||||
ControlGroupId Property = "ControlGroupId"
|
||||
ControlPID Property = "ControlPID"
|
||||
CoredumpFilter Property = "CoredumpFilter"
|
||||
CoredumpReceive Property = "CoredumpReceive"
|
||||
DebugInvocation Property = "DebugInvocation"
|
||||
DefaultDependencies Property = "DefaultDependencies"
|
||||
DefaultMemoryLow Property = "DefaultMemoryLow"
|
||||
DefaultMemoryMin Property = "DefaultMemoryMin"
|
||||
DefaultStartupMemoryLow Property = "DefaultStartupMemoryLow"
|
||||
DeferAcceptUSec Property = "DeferAcceptUSec"
|
||||
Delegate Property = "Delegate"
|
||||
Description Property = "Description"
|
||||
DevicePolicy Property = "DevicePolicy"
|
||||
DirectoryMode Property = "DirectoryMode"
|
||||
DynamicUser Property = "DynamicUser"
|
||||
EffectiveCPUs Property = "EffectiveCPUs"
|
||||
EffectiveMemoryHigh Property = "EffectiveMemoryHigh"
|
||||
EffectiveMemoryMax Property = "EffectiveMemoryMax"
|
||||
EffectiveMemoryNodes Property = "EffectiveMemoryNodes"
|
||||
EffectiveTasksMax Property = "EffectiveTasksMax"
|
||||
ExecMainCode Property = "ExecMainCode"
|
||||
ExecMainExitTimestampMonotonic Property = "ExecMainExitTimestampMonotonic"
|
||||
ExecMainPID Property = "ExecMainPID"
|
||||
@@ -61,10 +76,14 @@ const (
|
||||
ExecReloadEx Property = "ExecReloadEx"
|
||||
ExecStart Property = "ExecStart"
|
||||
ExecStartEx Property = "ExecStartEx"
|
||||
ExtensionImagePolicy Property = "ExtensionImagePolicy"
|
||||
FailureAction Property = "FailureAction"
|
||||
FileDescriptorName Property = "FileDescriptorName"
|
||||
FileDescriptorStoreMax Property = "FileDescriptorStoreMax"
|
||||
FinalKillSignal Property = "FinalKillSignal"
|
||||
FlushPending Property = "FlushPending"
|
||||
FragmentPath Property = "FragmentPath"
|
||||
FreeBind Property = "FreeBind"
|
||||
FreezerState Property = "FreezerState"
|
||||
GID Property = "GID"
|
||||
GuessMainPID Property = "GuessMainPID"
|
||||
@@ -81,6 +100,8 @@ const (
|
||||
IPEgressPackets Property = "IPEgressPackets"
|
||||
IPIngressBytes Property = "IPIngressBytes"
|
||||
IPIngressPackets Property = "IPIngressPackets"
|
||||
IPTOS Property = "IPTOS"
|
||||
IPTTL Property = "IPTTL"
|
||||
Id Property = "Id"
|
||||
IgnoreOnIsolate Property = "IgnoreOnIsolate"
|
||||
IgnoreSIGPIPE Property = "IgnoreSIGPIPE"
|
||||
@@ -91,6 +112,10 @@ const (
|
||||
JobRunningTimeoutUSec Property = "JobRunningTimeoutUSec"
|
||||
JobTimeoutAction Property = "JobTimeoutAction"
|
||||
JobTimeoutUSec Property = "JobTimeoutUSec"
|
||||
KeepAlive Property = "KeepAlive"
|
||||
KeepAliveIntervalUSec Property = "KeepAliveIntervalUSec"
|
||||
KeepAliveProbes Property = "KeepAliveProbes"
|
||||
KeepAliveTimeUSec Property = "KeepAliveTimeUSec"
|
||||
KeyringMode Property = "KeyringMode"
|
||||
KillMode Property = "KillMode"
|
||||
KillSignal Property = "KillSignal"
|
||||
@@ -126,6 +151,7 @@ const (
|
||||
LimitSIGPENDINGSoft Property = "LimitSIGPENDINGSoft"
|
||||
LimitSTACK Property = "LimitSTACK"
|
||||
LimitSTACKSoft Property = "LimitSTACKSoft"
|
||||
Listen Property = "Listen"
|
||||
LoadState Property = "LoadState"
|
||||
LockPersonality Property = "LockPersonality"
|
||||
LogLevelMax Property = "LogLevelMax"
|
||||
@@ -134,42 +160,76 @@ const (
|
||||
LogsDirectoryMode Property = "LogsDirectoryMode"
|
||||
MainPID Property = "MainPID"
|
||||
ManagedOOMMemoryPressure Property = "ManagedOOMMemoryPressure"
|
||||
ManagedOOMMemoryPressureDurationUSec Property = "ManagedOOMMemoryPressureDurationUSec"
|
||||
ManagedOOMMemoryPressureLimit Property = "ManagedOOMMemoryPressureLimit"
|
||||
ManagedOOMPreference Property = "ManagedOOMPreference"
|
||||
ManagedOOMSwap Property = "ManagedOOMSwap"
|
||||
Mark Property = "Mark"
|
||||
MaxConnections Property = "MaxConnections"
|
||||
MaxConnectionsPerSource Property = "MaxConnectionsPerSource"
|
||||
MemoryAccounting Property = "MemoryAccounting"
|
||||
MemoryAvailable Property = "MemoryAvailable"
|
||||
MemoryCurrent Property = "MemoryCurrent"
|
||||
MemoryDenyWriteExecute Property = "MemoryDenyWriteExecute"
|
||||
MemoryHigh Property = "MemoryHigh"
|
||||
MemoryKSM Property = "MemoryKSM"
|
||||
MemoryLimit Property = "MemoryLimit"
|
||||
MemoryLow Property = "MemoryLow"
|
||||
MemoryMax Property = "MemoryMax"
|
||||
MemoryMin Property = "MemoryMin"
|
||||
MemoryPeak Property = "MemoryPeak"
|
||||
MemoryPressureThresholdUSec Property = "MemoryPressureThresholdUSec"
|
||||
MemoryPressureWatch Property = "MemoryPressureWatch"
|
||||
MemorySwapCurrent Property = "MemorySwapCurrent"
|
||||
MemorySwapMax Property = "MemorySwapMax"
|
||||
MemorySwapPeak Property = "MemorySwapPeak"
|
||||
MemoryZSwapCurrent Property = "MemoryZSwapCurrent"
|
||||
MemoryZSwapMax Property = "MemoryZSwapMax"
|
||||
MemoryZSwapWriteback Property = "MemoryZSwapWriteback"
|
||||
MessageQueueMaxMessages Property = "MessageQueueMaxMessages"
|
||||
MessageQueueMessageSize Property = "MessageQueueMessageSize"
|
||||
MountAPIVFS Property = "MountAPIVFS"
|
||||
MountImagePolicy Property = "MountImagePolicy"
|
||||
NAccepted Property = "NAccepted"
|
||||
NConnections Property = "NConnections"
|
||||
NFileDescriptorStore Property = "NFileDescriptorStore"
|
||||
NRefused Property = "NRefused"
|
||||
NRestarts Property = "NRestarts"
|
||||
NUMAPolicy Property = "NUMAPolicy"
|
||||
Names Property = "Names"
|
||||
NeedDaemonReload Property = "NeedDaemonReload"
|
||||
Nice Property = "Nice"
|
||||
NoDelay Property = "NoDelay"
|
||||
NoNewPrivileges Property = "NoNewPrivileges"
|
||||
NonBlocking Property = "NonBlocking"
|
||||
NotifyAccess Property = "NotifyAccess"
|
||||
OOMPolicy Property = "OOMPolicy"
|
||||
OOMScoreAdjust Property = "OOMScoreAdjust"
|
||||
OnFailureJobMode Property = "OnFailureJobMode"
|
||||
OnSuccessJobMode Property = "OnSuccessJobMode"
|
||||
PIDFile Property = "PIDFile"
|
||||
PassCredentials Property = "PassCredentials"
|
||||
PassFileDescriptorsToExec Property = "PassFileDescriptorsToExec"
|
||||
PassPacketInfo Property = "PassPacketInfo"
|
||||
PassSecurity Property = "PassSecurity"
|
||||
Perpetual Property = "Perpetual"
|
||||
PipeSize Property = "PipeSize"
|
||||
PollLimitBurst Property = "PollLimitBurst"
|
||||
PollLimitIntervalUSec Property = "PollLimitIntervalUSec"
|
||||
Priority Property = "Priority"
|
||||
PrivateDevices Property = "PrivateDevices"
|
||||
PrivateIPC Property = "PrivateIPC"
|
||||
PrivateMounts Property = "PrivateMounts"
|
||||
PrivateNetwork Property = "PrivateNetwork"
|
||||
PrivatePIDs Property = "PrivatePIDs"
|
||||
PrivateTmp Property = "PrivateTmp"
|
||||
PrivateTmpEx Property = "PrivateTmpEx"
|
||||
PrivateUsers Property = "PrivateUsers"
|
||||
PrivateUsersEx Property = "PrivateUsersEx"
|
||||
ProcSubset Property = "ProcSubset"
|
||||
ProtectClock Property = "ProtectClock"
|
||||
ProtectControlGroups Property = "ProtectControlGroups"
|
||||
ProtectControlGroupsEx Property = "ProtectControlGroupsEx"
|
||||
ProtectHome Property = "ProtectHome"
|
||||
ProtectHostname Property = "ProtectHostname"
|
||||
ProtectKernelLogs Property = "ProtectKernelLogs"
|
||||
@@ -177,12 +237,16 @@ const (
|
||||
ProtectKernelTunables Property = "ProtectKernelTunables"
|
||||
ProtectProc Property = "ProtectProc"
|
||||
ProtectSystem Property = "ProtectSystem"
|
||||
ReceiveBuffer Property = "ReceiveBuffer"
|
||||
RefuseManualStart Property = "RefuseManualStart"
|
||||
RefuseManualStop Property = "RefuseManualStop"
|
||||
ReloadResult Property = "ReloadResult"
|
||||
RemainAfterExit Property = "RemainAfterExit"
|
||||
RemoveIPC Property = "RemoveIPC"
|
||||
RemoveOnStop Property = "RemoveOnStop"
|
||||
RequiredBy Property = "RequiredBy"
|
||||
Requires Property = "Requires"
|
||||
RequiresMountsFor Property = "RequiresMountsFor"
|
||||
Restart Property = "Restart"
|
||||
RestartKillSignal Property = "RestartKillSignal"
|
||||
RestartUSec Property = "RestartUSec"
|
||||
@@ -190,15 +254,22 @@ const (
|
||||
RestrictRealtime Property = "RestrictRealtime"
|
||||
RestrictSUIDSGID Property = "RestrictSUIDSGID"
|
||||
Result Property = "Result"
|
||||
ReusePort Property = "ReusePort"
|
||||
RootDirectoryStartOnly Property = "RootDirectoryStartOnly"
|
||||
RootEphemeral Property = "RootEphemeral"
|
||||
RootImagePolicy Property = "RootImagePolicy"
|
||||
RuntimeDirectoryMode Property = "RuntimeDirectoryMode"
|
||||
RuntimeDirectoryPreserve Property = "RuntimeDirectoryPreserve"
|
||||
RuntimeMaxUSec Property = "RuntimeMaxUSec"
|
||||
SameProcessGroup Property = "SameProcessGroup"
|
||||
SecureBits Property = "SecureBits"
|
||||
SendBuffer Property = "SendBuffer"
|
||||
SendSIGHUP Property = "SendSIGHUP"
|
||||
SendSIGKILL Property = "SendSIGKILL"
|
||||
SetLoginEnvironment Property = "SetLoginEnvironment"
|
||||
Slice Property = "Slice"
|
||||
SocketMode Property = "SocketMode"
|
||||
SocketProtocol Property = "SocketProtocol"
|
||||
StandardError Property = "StandardError"
|
||||
StandardInput Property = "StandardInput"
|
||||
StandardOutput Property = "StandardOutput"
|
||||
@@ -209,6 +280,11 @@ const (
|
||||
StartupCPUShares Property = "StartupCPUShares"
|
||||
StartupCPUWeight Property = "StartupCPUWeight"
|
||||
StartupIOWeight Property = "StartupIOWeight"
|
||||
StartupMemoryHigh Property = "StartupMemoryHigh"
|
||||
StartupMemoryLow Property = "StartupMemoryLow"
|
||||
StartupMemoryMax Property = "StartupMemoryMax"
|
||||
StartupMemorySwapMax Property = "StartupMemorySwapMax"
|
||||
StartupMemoryZSwapMax Property = "StartupMemoryZSwapMax"
|
||||
StateChangeTimestamp Property = "StateChangeTimestamp"
|
||||
StateChangeTimestampMonotonic Property = "StateChangeTimestampMonotonic"
|
||||
StateDirectoryMode Property = "StateDirectoryMode"
|
||||
@@ -216,6 +292,7 @@ const (
|
||||
StopWhenUnneeded Property = "StopWhenUnneeded"
|
||||
SubState Property = "SubState"
|
||||
SuccessAction Property = "SuccessAction"
|
||||
SurviveFinalKillSignal Property = "SurviveFinalKillSignal"
|
||||
SyslogFacility Property = "SyslogFacility"
|
||||
SyslogLevel Property = "SyslogLevel"
|
||||
SyslogLevelPrefix Property = "SyslogLevelPrefix"
|
||||
@@ -233,8 +310,14 @@ const (
|
||||
TimeoutStartUSec Property = "TimeoutStartUSec"
|
||||
TimeoutStopFailureMode Property = "TimeoutStopFailureMode"
|
||||
TimeoutStopUSec Property = "TimeoutStopUSec"
|
||||
TimeoutUSec Property = "TimeoutUSec"
|
||||
TimerSlackNSec Property = "TimerSlackNSec"
|
||||
Timestamping Property = "Timestamping"
|
||||
Transient Property = "Transient"
|
||||
Transparent Property = "Transparent"
|
||||
TriggerLimitBurst Property = "TriggerLimitBurst"
|
||||
TriggerLimitIntervalUSec Property = "TriggerLimitIntervalUSec"
|
||||
Triggers Property = "Triggers"
|
||||
Type Property = "Type"
|
||||
UID Property = "UID"
|
||||
UMask Property = "UMask"
|
||||
@@ -245,4 +328,5 @@ const (
|
||||
WatchdogSignal Property = "WatchdogSignal"
|
||||
WatchdogTimestampMonotonic Property = "WatchdogTimestampMonotonic"
|
||||
WatchdogUSec Property = "WatchdogUSec"
|
||||
Writable Property = "Writable"
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package properties
|
||||
|
||||
var Properties = []Property{
|
||||
Accept,
|
||||
ActiveEnterTimestamp,
|
||||
ActiveEnterTimestampMonotonic,
|
||||
ActiveExitTimestampMonotonic,
|
||||
@@ -10,9 +11,13 @@ var Properties = []Property{
|
||||
AssertResult,
|
||||
AssertTimestamp,
|
||||
AssertTimestampMonotonic,
|
||||
Backlog,
|
||||
Before,
|
||||
BindIPv6Only,
|
||||
BindLogSockets,
|
||||
BlockIOAccounting,
|
||||
BlockIOWeight,
|
||||
Broadcast,
|
||||
CPUAccounting,
|
||||
CPUAffinityFromNUMA,
|
||||
CPUQuotaPerSecUSec,
|
||||
@@ -26,6 +31,7 @@ var Properties = []Property{
|
||||
CacheDirectoryMode,
|
||||
CanFreeze,
|
||||
CanIsolate,
|
||||
CanLiveMount,
|
||||
CanReload,
|
||||
CanStart,
|
||||
CanStop,
|
||||
@@ -38,17 +44,26 @@ var Properties = []Property{
|
||||
ConfigurationDirectoryMode,
|
||||
Conflicts,
|
||||
ControlGroup,
|
||||
ControlGroupId,
|
||||
ControlPID,
|
||||
CoredumpFilter,
|
||||
CoredumpReceive,
|
||||
DebugInvocation,
|
||||
DefaultDependencies,
|
||||
DefaultMemoryLow,
|
||||
DefaultMemoryMin,
|
||||
DefaultStartupMemoryLow,
|
||||
DeferAcceptUSec,
|
||||
Delegate,
|
||||
Description,
|
||||
DevicePolicy,
|
||||
DirectoryMode,
|
||||
DynamicUser,
|
||||
EffectiveCPUs,
|
||||
EffectiveMemoryHigh,
|
||||
EffectiveMemoryMax,
|
||||
EffectiveMemoryNodes,
|
||||
EffectiveTasksMax,
|
||||
ExecMainCode,
|
||||
ExecMainExitTimestampMonotonic,
|
||||
ExecMainPID,
|
||||
@@ -59,10 +74,14 @@ var Properties = []Property{
|
||||
ExecReloadEx,
|
||||
ExecStart,
|
||||
ExecStartEx,
|
||||
ExtensionImagePolicy,
|
||||
FailureAction,
|
||||
FileDescriptorName,
|
||||
FileDescriptorStoreMax,
|
||||
FinalKillSignal,
|
||||
FlushPending,
|
||||
FragmentPath,
|
||||
FreeBind,
|
||||
FreezerState,
|
||||
GID,
|
||||
GuessMainPID,
|
||||
@@ -79,6 +98,8 @@ var Properties = []Property{
|
||||
IPEgressPackets,
|
||||
IPIngressBytes,
|
||||
IPIngressPackets,
|
||||
IPTOS,
|
||||
IPTTL,
|
||||
Id,
|
||||
IgnoreOnIsolate,
|
||||
IgnoreSIGPIPE,
|
||||
@@ -89,6 +110,10 @@ var Properties = []Property{
|
||||
JobRunningTimeoutUSec,
|
||||
JobTimeoutAction,
|
||||
JobTimeoutUSec,
|
||||
KeepAlive,
|
||||
KeepAliveIntervalUSec,
|
||||
KeepAliveProbes,
|
||||
KeepAliveTimeUSec,
|
||||
KeyringMode,
|
||||
KillMode,
|
||||
KillSignal,
|
||||
@@ -124,6 +149,7 @@ var Properties = []Property{
|
||||
LimitSIGPENDINGSoft,
|
||||
LimitSTACK,
|
||||
LimitSTACKSoft,
|
||||
Listen,
|
||||
LoadState,
|
||||
LockPersonality,
|
||||
LogLevelMax,
|
||||
@@ -132,42 +158,76 @@ var Properties = []Property{
|
||||
LogsDirectoryMode,
|
||||
MainPID,
|
||||
ManagedOOMMemoryPressure,
|
||||
ManagedOOMMemoryPressureDurationUSec,
|
||||
ManagedOOMMemoryPressureLimit,
|
||||
ManagedOOMPreference,
|
||||
ManagedOOMSwap,
|
||||
Mark,
|
||||
MaxConnections,
|
||||
MaxConnectionsPerSource,
|
||||
MemoryAccounting,
|
||||
MemoryAvailable,
|
||||
MemoryCurrent,
|
||||
MemoryDenyWriteExecute,
|
||||
MemoryHigh,
|
||||
MemoryKSM,
|
||||
MemoryLimit,
|
||||
MemoryLow,
|
||||
MemoryMax,
|
||||
MemoryMin,
|
||||
MemoryPeak,
|
||||
MemoryPressureThresholdUSec,
|
||||
MemoryPressureWatch,
|
||||
MemorySwapCurrent,
|
||||
MemorySwapMax,
|
||||
MemorySwapPeak,
|
||||
MemoryZSwapCurrent,
|
||||
MemoryZSwapMax,
|
||||
MemoryZSwapWriteback,
|
||||
MessageQueueMaxMessages,
|
||||
MessageQueueMessageSize,
|
||||
MountAPIVFS,
|
||||
MountImagePolicy,
|
||||
NAccepted,
|
||||
NConnections,
|
||||
NFileDescriptorStore,
|
||||
NRefused,
|
||||
NRestarts,
|
||||
NUMAPolicy,
|
||||
Names,
|
||||
NeedDaemonReload,
|
||||
Nice,
|
||||
NoDelay,
|
||||
NoNewPrivileges,
|
||||
NonBlocking,
|
||||
NotifyAccess,
|
||||
OOMPolicy,
|
||||
OOMScoreAdjust,
|
||||
OnFailureJobMode,
|
||||
OnSuccessJobMode,
|
||||
PIDFile,
|
||||
PassCredentials,
|
||||
PassFileDescriptorsToExec,
|
||||
PassPacketInfo,
|
||||
PassSecurity,
|
||||
Perpetual,
|
||||
PipeSize,
|
||||
PollLimitBurst,
|
||||
PollLimitIntervalUSec,
|
||||
Priority,
|
||||
PrivateDevices,
|
||||
PrivateIPC,
|
||||
PrivateMounts,
|
||||
PrivateNetwork,
|
||||
PrivatePIDs,
|
||||
PrivateTmp,
|
||||
PrivateTmpEx,
|
||||
PrivateUsers,
|
||||
PrivateUsersEx,
|
||||
ProcSubset,
|
||||
ProtectClock,
|
||||
ProtectControlGroups,
|
||||
ProtectControlGroupsEx,
|
||||
ProtectHome,
|
||||
ProtectHostname,
|
||||
ProtectKernelLogs,
|
||||
@@ -175,12 +235,16 @@ var Properties = []Property{
|
||||
ProtectKernelTunables,
|
||||
ProtectProc,
|
||||
ProtectSystem,
|
||||
ReceiveBuffer,
|
||||
RefuseManualStart,
|
||||
RefuseManualStop,
|
||||
ReloadResult,
|
||||
RemainAfterExit,
|
||||
RemoveIPC,
|
||||
RemoveOnStop,
|
||||
RequiredBy,
|
||||
Requires,
|
||||
RequiresMountsFor,
|
||||
Restart,
|
||||
RestartKillSignal,
|
||||
RestartUSec,
|
||||
@@ -188,15 +252,22 @@ var Properties = []Property{
|
||||
RestrictRealtime,
|
||||
RestrictSUIDSGID,
|
||||
Result,
|
||||
ReusePort,
|
||||
RootDirectoryStartOnly,
|
||||
RootEphemeral,
|
||||
RootImagePolicy,
|
||||
RuntimeDirectoryMode,
|
||||
RuntimeDirectoryPreserve,
|
||||
RuntimeMaxUSec,
|
||||
SameProcessGroup,
|
||||
SecureBits,
|
||||
SendBuffer,
|
||||
SendSIGHUP,
|
||||
SendSIGKILL,
|
||||
SetLoginEnvironment,
|
||||
Slice,
|
||||
SocketMode,
|
||||
SocketProtocol,
|
||||
StandardError,
|
||||
StandardInput,
|
||||
StandardOutput,
|
||||
@@ -207,6 +278,11 @@ var Properties = []Property{
|
||||
StartupCPUShares,
|
||||
StartupCPUWeight,
|
||||
StartupIOWeight,
|
||||
StartupMemoryHigh,
|
||||
StartupMemoryLow,
|
||||
StartupMemoryMax,
|
||||
StartupMemorySwapMax,
|
||||
StartupMemoryZSwapMax,
|
||||
StateChangeTimestamp,
|
||||
StateChangeTimestampMonotonic,
|
||||
StateDirectoryMode,
|
||||
@@ -214,6 +290,7 @@ var Properties = []Property{
|
||||
StopWhenUnneeded,
|
||||
SubState,
|
||||
SuccessAction,
|
||||
SurviveFinalKillSignal,
|
||||
SyslogFacility,
|
||||
SyslogLevel,
|
||||
SyslogLevelPrefix,
|
||||
@@ -231,8 +308,14 @@ var Properties = []Property{
|
||||
TimeoutStartUSec,
|
||||
TimeoutStopFailureMode,
|
||||
TimeoutStopUSec,
|
||||
TimeoutUSec,
|
||||
TimerSlackNSec,
|
||||
Timestamping,
|
||||
Transient,
|
||||
Transparent,
|
||||
TriggerLimitBurst,
|
||||
TriggerLimitIntervalUSec,
|
||||
Triggers,
|
||||
Type,
|
||||
UID,
|
||||
UMask,
|
||||
@@ -243,4 +326,5 @@ var Properties = []Property{
|
||||
WatchdogSignal,
|
||||
WatchdogTimestampMonotonic,
|
||||
WatchdogUSec,
|
||||
Writable,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user