| 1 |
# WARNING : This file is NOT a valid systemd service. |
| 2 |
# It was created to demonstrate/test KDE syntax highlighting. |
| 3 |
# It includes invalid sections, option names and option values. |
| 4 |
|
| 5 |
; NOTE: Alerts in comments are supported. |
| 6 |
|
| 7 |
|
| 8 |
[Automount] |
| 9 |
Where = /the/mount/directory |
| 10 |
ExtraOptions = some,extra, mount , options, %I |
| 11 |
DirectoryMode = 0755 |
| 12 |
TimeoutIdleSec = 5min 5s |
| 13 |
|
| 14 |
|
| 15 |
[Install] |
| 16 |
Alias = some.service some.invalid some_%b.service |
| 17 |
WantedBy = some.service some.socket some.invalid |
| 18 |
RequiredBy = some.service some.socket some.invalid |
| 19 |
Also = some.service some.socket some.invalid |
| 20 |
DefaultInstance = id |
| 21 |
|
| 22 |
|
| 23 |
[Mount] |
| 24 |
What = /dev/disk/by-uuid/444c-0d9d-411e-a973-015b31acaa |
| 25 |
Where = /the/mount/directory |
| 26 |
Type = btrfs |
| 27 |
Options = subvol=some_name,compress=lzo,noatime,noauto,nodev,nosuid |
| 28 |
SloppyOptions = on |
| 29 |
LazyUnmount = true |
| 30 |
ReadWriteOnly = true |
| 31 |
ForceUnmount = yes |
| 32 |
DirectoryMode = 0700 |
| 33 |
TimeoutSec = 5 m 20 s |
| 34 |
|
| 35 |
|
| 36 |
[Path] |
| 37 |
PathExists = /some/absolute/path |
| 38 |
PathExistsGlob = /some/g[lo]b* |
| 39 |
PathChanged = /some/absolute/path |
| 40 |
PathModified = /some/absolute/path |
| 41 |
DirectoryNotEmpty = /some/absolute/path |
| 42 |
Unit = [email protected] |
| 43 |
MakeDirectory = yes |
| 44 |
DirectoryMode = 0700 |
| 45 |
TriggerLimitIntervalSec = 1min 10sec |
| 46 |
TriggerLimitBurst = 15 |
| 47 |
|
| 48 |
|
| 49 |
[Service] |
| 50 |
## from systemd.service |
| 51 |
Type = exec |
| 52 |
RemainAfterExit = false |
| 53 |
GuessMainPID = no |
| 54 |
PIDFile = some/path |
| 55 |
BusName = some.name |
| 56 |
ExecStart = /usr/bin/Xorg ${DISPLAY} ${XDG_VTNR} \ |
| 57 |
-logfile %t/X.%i.log \ |
| 58 |
-nolisten tcp \ |
| 59 |
-quiet |
| 60 |
ExecStartPre = @/bin/start/pre some args |
| 61 |
ExecStartPost = -cmd arg, @cmd2 name -o \x0A |
| 62 |
ExecCondition = /bin/exec/condition |
| 63 |
ExecReload = /bin/exec/reload |
| 64 |
ExecStop = /bin/kill -SIGABRT $MAINPID |
| 65 |
ExecStopPost = -:!!/bin/stop/post |
| 66 |
RestartSec = 15 |
| 67 |
TimeoutStartSec = 5s 100ms |
| 68 |
TimeoutStopSec = infinity |
| 69 |
TimeoutAbortSec = 15 |
| 70 |
TimeoutSec = 10 |
| 71 |
TimeoutStartFailureMode = abort |
| 72 |
TimeoutStopFailureMode = kill |
| 73 |
RuntimeMaxSec = 1min 20 seconds |
| 74 |
RuntimeRandomizedExtraSec = 12 |
| 75 |
WatchdogSec = 90 |
| 76 |
Restart = on-watchdog |
| 77 |
SuccessExitStatus = PROTOCOL RUNTIME_DIRECTORY \ |
| 78 |
SECCOMP 15 23 SIGUSR1 SIGXCPU |
| 79 |
RestartPreventExitStatus = 15 23 SIGUSR1 \ |
| 80 |
SIGXCPU |
| 81 |
RestartForceExitStatus = SIGQUIT SIGSTOP 99 |
| 82 |
RootDirectoryStartOnly = false |
| 83 |
NonBlocking = false |
| 84 |
NotifyAccess = exec |
| 85 |
Sockets = some.socket \ |
| 86 |
some-other.socket |
| 87 |
FileDescriptorStoreMax = 5 |
| 88 |
USBFunctionDescriptors = /some/absolute/path |
| 89 |
USBFunctionStrings = /some/absolute/path |
| 90 |
OOMPolicy = stop |
| 91 |
OpenFile = /some/path:fd-name:graceful,read-only |
| 92 |
ReloadSignal = SIGUSR1 |
| 93 |
|
| 94 |
## from systemd.exec |
| 95 |
ExecPaths = some/path some/other/path |
| 96 |
ExtensionImages = /source/path |
| 97 |
ExtensionDirectories = /source/path |
| 98 |
IPCNamespacePath = /some/absolute/path |
| 99 |
NoExecPaths = some/path some/other/path |
| 100 |
PrivateIPC = false |
| 101 |
## from systemd.exec Paths |
| 102 |
ExecSearchPath = /some/path:/some/other/path |
| 103 |
WorkingDirectory = ~ |
| 104 |
RootDirectory = /some/path |
| 105 |
RootImage = /some/path |
| 106 |
RootImageOptions = partition_name,noauto |
| 107 |
RootHash = /some/path |
| 108 |
RootHash = 0xABCDEF |
| 109 |
RootHashSignature = |
| 110 |
RootVerity = /some/path |
| 111 |
MountAPIVFS = true |
| 112 |
ProcSubset = pid |
| 113 |
BindPaths = /source/path,/destination/path,rbind \ |
| 114 |
/source/path2,/destination/path2,norbind \ |
| 115 |
/source/path3 |
| 116 |
BindReadOnlyPaths = /source/path,/destination/path,rbind \ |
| 117 |
/source/path2,/destination/path2,norbind \ |
| 118 |
/source/path3 |
| 119 |
MountImages = /source/path,dest |
| 120 |
## from systemd.exec Credentials |
| 121 |
User = 1000 |
| 122 |
Group = group-name |
| 123 |
DynamicUser = true |
| 124 |
SupplementaryGroups = group1 group-two 100 \ |
| 125 |
one-more-group |
| 126 |
PAMName = |
| 127 |
LoadCredential = some_id:/path/to/credential/data |
| 128 |
LoadCredentialEncrypted = some_id:/path/to/credential/data |
| 129 |
SetCredential = some_id:some_credential |
| 130 |
SetCredentialEncrypted = some_id:some_encrypted_credential |
| 131 |
## from systemd.exec Capabilities |
| 132 |
CapabilityBoundingSet = ~ CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE \ |
| 133 |
CAP_NET_ADMIN CAP_SYS_BOOT |
| 134 |
AmbientCapabilities = CAP_SYS_ADMIN \ |
| 135 |
CAP_DAC_OVERRIDE |
| 136 |
## from systemd.exec Security |
| 137 |
NoNewPrivileges = true |
| 138 |
SecureBits = keep-caps keep-caps-locked \ |
| 139 |
no-setuid-fixup \ |
| 140 |
no-setuid-fixup-locked |
| 141 |
## from systemd.exec Mandatory Access Control |
| 142 |
SELinuxContext = |
| 143 |
AppArmorProfile = - someprofile |
| 144 |
SmackProcessLabel = -label |
| 145 |
## from systemd.exec Process Properties |
| 146 |
LimitCPU = 15s:20s |
| 147 |
LimitFSIZE = 12G:24G |
| 148 |
LimitDATA = infinity |
| 149 |
LimitSTACK = 512K |
| 150 |
LimitCORE = 128K |
| 151 |
LimitRSS = 2G |
| 152 |
LimitNOFILE = 123:234 |
| 153 |
LimitAS = 3G |
| 154 |
LimitNPROC = 4711 |
| 155 |
LimitMEMLOCK = 12G |
| 156 |
LimitLOCKS = 321 |
| 157 |
LimitSIGPENDING = 46 |
| 158 |
LimitMSGQUEUE = 512K |
| 159 |
LimitNICE = +12 : +15 |
| 160 |
LimitRTPRIO = 20 : 40 |
| 161 |
LimitRTTIME = 12us : 15 |
| 162 |
UMask = 0022 |
| 163 |
CoredumpFilter = default private-dax shared-dax |
| 164 |
KeyringMode = private |
| 165 |
OOMScoreAdjust = 123 |
| 166 |
TimerSlackNSec = 321 |
| 167 |
Personality = x86-64 |
| 168 |
IgnoreSIGPIPE = false |
| 169 |
## from systemd.exec Scheduling |
| 170 |
Nice = +12 |
| 171 |
CPUSchedulingPolicy = fifo |
| 172 |
CPUSchedulingPriority = 34 |
| 173 |
CPUSchedulingResetOnFork = false |
| 174 |
CPUAffinity = 0 1, 2 , \ |
| 175 |
3, 4-8 |
| 176 |
NUMAPolicy = interleave |
| 177 |
NUMAMask = 1,2,3-8 |
| 178 |
IOSchedulingClass = idle |
| 179 |
IOSchedulingPriority = 5 |
| 180 |
## from systemd.exec Sandboxing |
| 181 |
ProtectSystem = strict |
| 182 |
ProtectHome = read-only |
| 183 |
RuntimeDirectory = some/dir:some_symlink |
| 184 |
StateDirectory = some/dir |
| 185 |
CacheDirectory = some/dir |
| 186 |
LogsDirectory = some/dir |
| 187 |
ConfigurationDirectory = some/dir |
| 188 |
RuntimeDirectoryMode = 0755 |
| 189 |
StateDirectoryMode = 0755 |
| 190 |
CacheDirectoryMode = 0755 |
| 191 |
LogsDirectoryMode = 0755 |
| 192 |
ConfigurationDirectoryMode = 0755 |
| 193 |
RuntimeDirectoryPreserve = restart |
| 194 |
TimeoutCleanSec = 20 |
| 195 |
ReadWritePaths = some/dir |
| 196 |
ReadOnlyPaths = some/dir |
| 197 |
InaccessiblePaths = some/dir |
| 198 |
TemporaryFileSystem = /var:ro |
| 199 |
PrivateTmp = yes |
| 200 |
PrivateDevices = on |
| 201 |
PrivateNetwork = no |
| 202 |
NetworkNamespacePath = /some/path |
| 203 |
PrivateUsers = off |
| 204 |
ProtectHostname = false |
| 205 |
ProtectClock = no |
| 206 |
ProtectKernelTunables = yes |
| 207 |
ProtectKernelModules = true |
| 208 |
ProtectKernelLogs = yes |
| 209 |
ProtectControlGroups = y |
| 210 |
RestrictAddressFamilies = ~ AF_INET AF_VSOCK |
| 211 |
RestrictFileSystems = ~btrfs ntfs3 \ |
| 212 |
@temporary |
| 213 |
RestrictNamespaces = cgroup net \ |
| 214 |
ipc |
| 215 |
LockPersonality = yes |
| 216 |
MemoryDenyWriteExecute = true |
| 217 |
RestrictRealtime = true |
| 218 |
RestrictSUIDSGID = true |
| 219 |
RemoveIPC = no |
| 220 |
PrivateMounts = false |
| 221 |
MountFlags = shared |
| 222 |
## from systemd.exec System Call Filtering |
| 223 |
SystemCallFilter = @debug @aio |
| 224 |
SystemCallErrorNumber = ETIMEDOUT |
| 225 |
SystemCallArchitectures = mips64-n32 \ |
| 226 |
native sparc |
| 227 |
SystemCallLog = ~ some_name \ |
| 228 |
another_name |
| 229 |
## from systemd.exec System Call Environment |
| 230 |
Environment = DISPLAY=:%i |
| 231 |
Environment = XAUTHORITY=%t/Xauthority.%i \ |
| 232 |
"var=value with spaces" |
| 233 |
Environment = XDG_VTNR=vt%i |
| 234 |
EnvironmentFile = - /some/path |
| 235 |
PassEnvironment = SOME VARIABLES TO PASS |
| 236 |
UnsetEnvironment = SOME VARIABLES TO BE UNSET |
| 237 |
## from systemd.exec Logging and Standard Input/Output |
| 238 |
StandardInput = file:/some/absolute/path |
| 239 |
StandardOutput = journal+console |
| 240 |
StandardError = inherit |
| 241 |
StandardInputText = SWNrIHNpdHplIGRhIHVuJyBlc3NlIEtsb3B |
| 242 |
StandardInputData = yBkZW5rIG5hbnUhCkpldHogaXNzZSB1ZmYsIGVy |
| 243 |
LogLevelMax = info |
| 244 |
LogExtraFields = FIELD=VALUE OTHER_FIELD=VALUE2 |
| 245 |
LogRateLimitIntervalSec = 1s 500ms |
| 246 |
LogRateLimitBurst = 50 |
| 247 |
LogFilterPatterns = ~some_rx |
| 248 |
LogFilterPatterns = \x7esome_rx |
| 249 |
LogNamespace = some_name |
| 250 |
SyslogIdentifier = some_identifier |
| 251 |
SyslogFacility = daemon |
| 252 |
SyslogLevel = debug |
| 253 |
SyslogLevelPrefix = true |
| 254 |
TTYPath = /dev/console |
| 255 |
TTYReset = yes |
| 256 |
TTYVHangup = on |
| 257 |
TTYRows = 24 |
| 258 |
TTYColumns = 80 |
| 259 |
TTYVTDisallocate = true |
| 260 |
## from systemd.exec System V Compatibility |
| 261 |
UtmpIdentifier = utid |
| 262 |
UtmpMode = init |
| 263 |
|
| 264 |
## from systemd.kill |
| 265 |
KillMode = process |
| 266 |
KillSignal = SIGABRT |
| 267 |
RestartKillSignal = SIGHUP |
| 268 |
SendSIGHUP = yes |
| 269 |
SendSIGKILL = no |
| 270 |
FinalKillSignal = SIGABRT |
| 271 |
WatchdogSignal = SIGQUIT |
| 272 |
|
| 273 |
## from systemd.resource-control |
| 274 |
CPUAccounting = yes |
| 275 |
CPUWeight = 1234 |
| 276 |
StartupCPUWeight = 321 |
| 277 |
CPUQuota = 123.4% |
| 278 |
CPUQuotaPeriodSec = 1s 23ms 45us |
| 279 |
AllowedCPUs = 0-8, 12 |
| 280 |
StartupAllowedCPUs = 0-24 |
| 281 |
AllowedMemoryNodes = 5-8, 12 |
| 282 |
StartupAllowedMemoryNodes = 5-10, 12 |
| 283 |
MemoryAccounting = yes |
| 284 |
MemoryMin = 10G |
| 285 |
MemoryLow = 20% |
| 286 |
MemoryHigh = 40 % |
| 287 |
MemoryMax = 60% |
| 288 |
MemorySwapMax = 10G |
| 289 |
MemoryZSwapMax = 2G |
| 290 |
TasksAccounting = on |
| 291 |
TasksMax = 50% |
| 292 |
IOAccounting = on |
| 293 |
IOWeight = 1000 |
| 294 |
StartupIOWeight = 500 |
| 295 |
IODeviceWeight = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 1000 |
| 296 |
IOReadBandwidthMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 10M |
| 297 |
IOWriteBandwidthMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 5M |
| 298 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 1K |
| 299 |
IOWriteIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 2K |
| 300 |
IODeviceLatencyTargetSec = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 5s 20ms 100us |
| 301 |
IPAccounting = on |
| 302 |
IPAddressAllow = 127.0.0.0/8 ::1/128 |
| 303 |
DevicePolicy = strict |
| 304 |
Slice = some.slice |
| 305 |
Delegate = bpf-firewall |
| 306 |
DisableControllers = cpu io |
| 307 |
ManagedOOMSwap = auto |
| 308 |
ManagedOOMMemoryPressure = kill |
| 309 |
ManagedOOMMemoryPressureLimit = 50% |
| 310 |
BPFProgram = bind6:/sys/fs/bpf/sock-addr-hook |
| 311 |
RestrictNetworkInterfaces = ~eth1 eth2 |
| 312 |
|
| 313 |
|
| 314 |
[Socket] |
| 315 |
ListenStream = 0.0.0.0:4000 |
| 316 |
ListenDatagram = /path/to/socket |
| 317 |
ListenFIFO = /some/path |
| 318 |
ListenSequentialPacket = @namespace |
| 319 |
ListenSpecial = /some/path |
| 320 |
ListenNetlink = kobject-uevent |
| 321 |
ListenMessageQueue = /queue |
| 322 |
ListenUSBFunction = /some/path |
| 323 |
SocketProtocol = sctp |
| 324 |
BindIPv6Only = both |
| 325 |
Backlog = 123 |
| 326 |
BindToDevice = name |
| 327 |
SocketGroup = users |
| 328 |
SocketUser = someuser |
| 329 |
SocketMode = 0644 |
| 330 |
DirectoryMode = 0744 |
| 331 |
Accept = no |
| 332 |
Writable = yes |
| 333 |
FlushPending = true |
| 334 |
MaxConnections = 34 |
| 335 |
MaxConnectionsPerSource = 10 |
| 336 |
KeepAlive = yes |
| 337 |
KeepAliveTimeSec = 15s 30ms |
| 338 |
KeepAliveIntervalSec = 10s 123us |
| 339 |
KeepAliveProbes = 12 |
| 340 |
NoDelay = false |
| 341 |
Priority = 5 |
| 342 |
DeferAcceptSec = 1s 100ms |
| 343 |
ReceiveBuffer = 10K |
| 344 |
SendBuffer = 15K |
| 345 |
IPTOS = low-delay |
| 346 |
IPTTL = 12 |
| 347 |
Mark = 12 |
| 348 |
ReusePort = no |
| 349 |
SmackLabel = value |
| 350 |
SmackLabelIPIn = value |
| 351 |
SmackLabelIPOut = value |
| 352 |
SELinuxContextFromNet = true |
| 353 |
PipeSize = 1M |
| 354 |
MessageQueueMaxMessages = 12 |
| 355 |
MessageQueueMessageSize = 1234 |
| 356 |
FreeBind = yes |
| 357 |
Transparent = no |
| 358 |
Broadcast = true |
| 359 |
PassCredentials = yes |
| 360 |
PassSecurity = true |
| 361 |
PassPacketInfo = true |
| 362 |
Timestamping = nsec |
| 363 |
TCPCongestion = westwood |
| 364 |
ExecStartPre = +/usr/bin/start/pre |
| 365 |
ExecStartPost = @/usr/bin/start/post arg |
| 366 |
ExecStopPre = /usr/bin/stop/pre |
| 367 |
ExecStopPost = /usr/bin/stop/post |
| 368 |
TimeoutSec = 1m 30sec |
| 369 |
Service = some.service |
| 370 |
RemoveOnStop = yes |
| 371 |
Symlinks = /some/path /some/other/path |
| 372 |
FileDescriptorName = some_name |
| 373 |
TriggerLimitIntervalSec = 1s 500ms |
| 374 |
TriggerLimitBurst = 50 |
| 375 |
|
| 376 |
|
| 377 |
[Swap] |
| 378 |
What = /dev/disk/by-uuid/5db77-fde6-424e-a1bb-e88e8996c |
| 379 |
Priority = 123 |
| 380 |
Options = some,device,options |
| 381 |
TimeoutSec = 1m 20s |
| 382 |
# see [Service] for options from systemd.exec and systemd.kill |
| 383 |
|
| 384 |
|
| 385 |
[Timer] |
| 386 |
OnActiveSec = 90 |
| 387 |
OnBootSec = 5min 15s 100ms |
| 388 |
OnStartupSec = 2 minutes |
| 389 |
OnUnitActiveSec = 1 min |
| 390 |
OnUnitInactiveSec = 1m 30s |
| 391 |
OnCalendar = daily |
| 392 |
AccuracySec = 1min 10sec |
| 393 |
RandomizedDelaySec = 30s |
| 394 |
FixedRandomDelay = yes |
| 395 |
OnClockChange = false |
| 396 |
OnTimezoneChange = true |
| 397 |
Unit = some_timed.service |
| 398 |
Persistent = true |
| 399 |
WakeSystem = no |
| 400 |
RemainAfterElapse = true |
| 401 |
|
| 402 |
|
| 403 |
[Unit] |
| 404 |
Description = Testing systemd unit |
| 405 |
Documentation = https://docs.kde.org/stable5/en/applications/katepart/highlight.html \ |
| 406 |
man:/systemd.unit |
| 407 |
Requires = some.service |
| 408 |
Requisite = some-service-name.service |
| 409 |
Wants = some.service |
| 410 |
BindsTo = some.service |
| 411 |
BindsTo = %i.mount |
| 412 |
PartOf = some.service |
| 413 |
Upholds = some.service some-other.service |
| 414 |
Conflicts = some.service |
| 415 |
Before = some.service |
| 416 |
After = some.service [email protected] |
| 417 |
OnFailure = some.service |
| 418 |
OnSuccess = some.service some-other.service |
| 419 |
PropagatesReloadTo = some.service |
| 420 |
ReloadPropagatedFrom = some.service |
| 421 |
JoinsNamespaceOf = some.service |
| 422 |
PropagatesStopTo = some.service some-other.service |
| 423 |
StopPropagatedFrom = some.service some-other.service |
| 424 |
RequiresMountsFor = /tmp /var/log %h |
| 425 |
OnFailureJobMode = fail |
| 426 |
IgnoreOnIsolate = true |
| 427 |
StopWhenUnneeded = false |
| 428 |
RefuseManualStart = false |
| 429 |
RefuseManualStop = true |
| 430 |
AllowIsolate = true |
| 431 |
DefaultDependencies = no |
| 432 |
CollectMode = inactive |
| 433 |
FailureAction = reboot |
| 434 |
SuccessAction = none |
| 435 |
FailureActionExitStatus = 15 |
| 436 |
SuccessActionExitStatus = 255 |
| 437 |
JobTimeoutSec = 10 |
| 438 |
JobRunningTimeoutSec = infinity |
| 439 |
JobTimeoutAction = none |
| 440 |
JobTimeoutRebootArgument = some argument |
| 441 |
StartLimitIntervalSec = 0 |
| 442 |
StartLimitBurst = 10 |
| 443 |
StartLimitAction = none |
| 444 |
RebootArgument = some argument |
| 445 |
ConditionArchitecture = x86 |
| 446 |
ConditionVirtualization = |vmware |
| 447 |
ConditionHost = !shodan* |
| 448 |
ConditionKernelCommandLine = !kernel_option |
| 449 |
ConditionKernelVersion = | >= 4.* |
| 450 |
ConditionCredential = name |
| 451 |
ConditionEnvironment = SOME_ENVIRONMENT_VARIABLE=some_value |
| 452 |
ConditionSecurity = | ! selinux |
| 453 |
ConditionCapability = !CAP_NET_ADMIN |
| 454 |
ConditionACPower = true |
| 455 |
ConditionNeedsUpdate = !/var |
| 456 |
ConditionFirstBoot = |false |
| 457 |
ConditionPathExists = !/some/absolute/path |
| 458 |
ConditionPathExistsGlob = |!/m?t/s[ao]me/path* |
| 459 |
ConditionPathIsDirectory = !/some/path |
| 460 |
ConditionPathIsSymbolicLink = !/some/path |
| 461 |
ConditionPathIsMountPoint = /some/path |
| 462 |
ConditionPathIsReadWrite = !/some/path |
| 463 |
ConditionPathIsEncrypted = !/some/absolute/path |
| 464 |
ConditionDirectoryNotEmpty = !/some/path |
| 465 |
ConditionFileNotEmpty = !/some/path |
| 466 |
ConditionFileIsExecutable = !/some/path |
| 467 |
ConditionUser = |@system |
| 468 |
ConditionGroup = |groupname |
| 469 |
ConditionControlGroupController = memory |
| 470 |
ConditionMemory = | >= 1G |
| 471 |
ConditionCPUs = | < 8 |
| 472 |
ConditionCPUFeature = | sse2 |
| 473 |
ConditionOSRelease = ID=some-id |
| 474 |
ConditionMemoryPressure = 20%/5min |
| 475 |
ConditionCPUPressure = 12%/10sec |
| 476 |
ConditionIOPressure = 30% / 1min |
| 477 |
AssertArchitecture = x86 |
| 478 |
AssertVirtualization = |vmware |
| 479 |
AssertHost = !shodan* |
| 480 |
AssertKernelCommandLine = !kernel_option |
| 481 |
AssertKernelVersion = !>=5.3 |
| 482 |
AssertCredential = name |
| 483 |
AssertEnvironment = SOME_ENVIRONMENT_VARIABLE=some_value |
| 484 |
AssertSecurity = | ! selinux |
| 485 |
AssertCapability = !CAP_NET_ADMIN |
| 486 |
AssertACPower = true |
| 487 |
AssertNeedsUpdate = !/var |
| 488 |
AssertFirstBoot = |false |
| 489 |
AssertPathExists = !/some/absolute/path |
| 490 |
AssertPathExistsGlob = |!/mnt/* |
| 491 |
AssertPathIsDirectory = !/some/path |
| 492 |
AssertPathIsSymbolicLink = !/some/path |
| 493 |
AssertPathIsMountPoint = !/some/path |
| 494 |
AssertPathIsReadWrite = !/some/path |
| 495 |
AssertPathIsEncrypted = !/some/path |
| 496 |
AssertDirectoryNotEmpty = !/some/path |
| 497 |
AssertFileNotEmpty = !/some/path |
| 498 |
AssertFileIsExecutable = !/some/path |
| 499 |
AssertUser = |@system |
| 500 |
AssertGroup = |groupname |
| 501 |
AssertControlGroupController = memory |
| 502 |
AssertCPUFeature = | sse4_2 |
| 503 |
AssertOSRelease = ID=some-id |
| 504 |
AssertMemoryPressure = 20%/5min |
| 505 |
AssertCPUPressure = 12%/10sec |
| 506 |
AssertIOPressure = 30% / 1min |
| 507 |
|
| 508 |
|
| 509 |
###### invalid sections |
| 510 |
[Device] |
| 511 |
[Invalid] |
| 512 |
[Slice] |
| 513 |
[Target] |
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
############ |
| 518 |
# Extensions |
| 519 |
############ |
| 520 |
|
| 521 |
|
| 522 |
###### option |
| 523 |
[Unit] |
| 524 |
Description = testing extensions |
| 525 |
X-this = some value |
| 526 |
X-multiple-lines = some.service \ |
| 527 |
other service |
| 528 |
|
| 529 |
|
| 530 |
###### section |
| 531 |
[X-Unit] |
| 532 |
name = value |
| 533 |
|
| 534 |
## Comments in an extension section are just the same as elsewhere. |
| 535 |
|
| 536 |
Some text in an extension section. |
| 537 |
The extension section ends with the next section header. |
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
######## |
| 542 |
# Format |
| 543 |
######## |
| 544 |
|
| 545 |
###### for options accepting multiple values, lines may be continued |
| 546 |
# using a trailing backlash |
| 547 |
[Unit] |
| 548 |
Before = before-me.socket \ |
| 549 |
before-me.service |
| 550 |
|
| 551 |
###### additional spaces are OK |
| 552 |
[Unit] |
| 553 |
RequiresMountsFor = /tmp /var/log |
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
######################################################## |
| 558 |
# Testing valid and invalid values for defined contexts. |
| 559 |
######################################################## |
| 560 |
|
| 561 |
|
| 562 |
###### invalid options |
| 563 |
[Unit] |
| 564 |
# missing assignment operator |
| 565 |
Description is invalid as it lacks the assignment operator |
| 566 |
# invalid option name |
| 567 |
InvalidOption = some text |
| 568 |
# WantedBy belongs to the [Install] section |
| 569 |
WantedBy = some.service some.socket |
| 570 |
|
| 571 |
|
| 572 |
###### AC architecture |
| 573 |
[Unit] |
| 574 |
# see "architecture" for all possible values |
| 575 |
AssertArchitecture = alpha |
| 576 |
AssertArchitecture = | alpha |
| 577 |
AssertArchitecture = |! alpha |
| 578 |
AssertArchitecture = ! alpha |
| 579 |
# other options |
| 580 |
ConditionArchitecture = |! alpha |
| 581 |
## invalid values |
| 582 |
AssertArchitecture = !| alpha |
| 583 |
AssertArchitecture = || alpha |
| 584 |
AssertArchitecture = !! alpha |
| 585 |
|
| 586 |
|
| 587 |
###### AC boolean |
| 588 |
[Unit] |
| 589 |
# see "boolean" for all possible values |
| 590 |
AssertACPower = true |
| 591 |
AssertACPower = | true |
| 592 |
AssertACPower = | ! true |
| 593 |
AssertACPower = ! true |
| 594 |
# other options |
| 595 |
AssertFirstBoot = | ! true |
| 596 |
ConditionACPower = | ! true |
| 597 |
ConditionFirstBoot = | ! true |
| 598 |
## invalid values |
| 599 |
AssertACPower = ! | true |
| 600 |
AssertACPower = | | true |
| 601 |
AssertACPower = !! true |
| 602 |
|
| 603 |
|
| 604 |
###### AC capability |
| 605 |
[Unit] |
| 606 |
# see "capability" for all possible values |
| 607 |
AssertCapability = CAP_CHOWN |
| 608 |
AssertCapability = | CAP_CHOWN |
| 609 |
AssertCapability = |! CAP_CHOWN |
| 610 |
AssertCapability = ! CAP_CHOWN |
| 611 |
# other options |
| 612 |
ConditionCapability = |! CAP_CHOWN |
| 613 |
## invalid values |
| 614 |
AssertCapability = !| CAP_CHOWN |
| 615 |
AssertCapability = || CAP_CHOWN |
| 616 |
AssertCapability = !! CAP_CHOWN |
| 617 |
|
| 618 |
|
| 619 |
###### AC cardinal |
| 620 |
[Unit] |
| 621 |
ConditionCPUs = < 123456789 |
| 622 |
ConditionCPUs = <= 123456789 |
| 623 |
ConditionCPUs = = 123456789 |
| 624 |
ConditionCPUs = != 123456789 |
| 625 |
ConditionCPUs = >=123456789 |
| 626 |
ConditionCPUs = > 123456789 |
| 627 |
ConditionCPUs = |< 123456789 |
| 628 |
ConditionCPUs = |<= 123456789 |
| 629 |
ConditionCPUs = |= 123456789 |
| 630 |
ConditionCPUs = | != 123456789 |
| 631 |
ConditionCPUs = | >=123456789 |
| 632 |
ConditionCPUs = | > 123456789 |
| 633 |
## other options |
| 634 |
ConditionCPUs = > 4 |
| 635 |
## invalid values |
| 636 |
ConditionCPUs = == 123456789 |
| 637 |
ConditionCPUs = >> 123456789 |
| 638 |
ConditionCPUs = = 123456789.987 |
| 639 |
ConditionCPUs = || = 123456789.987 |
| 640 |
|
| 641 |
|
| 642 |
###### AC cardinal KMGT |
| 643 |
[Unit] |
| 644 |
ConditionMemory = > 123456789 |
| 645 |
ConditionMemory = |< 123456789 |
| 646 |
ConditionMemory = |! >= 1G |
| 647 |
ConditionMemory = | != 512K |
| 648 |
## invalid values |
| 649 |
# no exabyte (yet) |
| 650 |
ConditionMemory = = 1E |
| 651 |
|
| 652 |
|
| 653 |
###### AC cpu feature |
| 654 |
[Unit] |
| 655 |
# see "cpu feature" for all possible values |
| 656 |
ConditionCPUFeature = |! sse2 |
| 657 |
|
| 658 |
|
| 659 |
###### AC controller cg (assert/condition for control group controller) |
| 660 |
[Unit] |
| 661 |
AssertControlGroupController = cpu |
| 662 |
AssertControlGroupController = | cpu |
| 663 |
AssertControlGroupController = |! cpu |
| 664 |
AssertControlGroupController = ! cpu |
| 665 |
# other options |
| 666 |
ConditionControlGroupController = |! cpu |
| 667 |
## invalid values |
| 668 |
AssertControlGroupController = !| cpu |
| 669 |
AssertControlGroupController = || cpu |
| 670 |
AssertControlGroupController = !! cpu |
| 671 |
|
| 672 |
|
| 673 |
###### AC firmware |
| 674 |
[Unit] |
| 675 |
# see "firmware" for all possible values |
| 676 |
ConditionFirmware = |! uefi |
| 677 |
|
| 678 |
|
| 679 |
###### AC group |
| 680 |
[Unit] |
| 681 |
AssertGroup = | name |
| 682 |
AssertGroup = |! name |
| 683 |
AssertGroup = ! name |
| 684 |
# other options |
| 685 |
ConditionGroup = |! name |
| 686 |
## invalid values |
| 687 |
AssertGroup = !| name |
| 688 |
AssertGroup = || name |
| 689 |
AssertGroup = !! name |
| 690 |
|
| 691 |
|
| 692 |
###### AC security |
| 693 |
[Unit] |
| 694 |
# see "security" for all possible values |
| 695 |
AssertSecurity = audit |
| 696 |
AssertSecurity = | audit |
| 697 |
AssertSecurity = |! audit |
| 698 |
AssertSecurity = ! audit |
| 699 |
# other options |
| 700 |
ConditionSecurity = |! audit |
| 701 |
## invalid values |
| 702 |
AssertSecurity = !| audit |
| 703 |
AssertSecurity = || audit |
| 704 |
AssertSecurity = !! audit |
| 705 |
|
| 706 |
|
| 707 |
###### AC text |
| 708 |
[Unit] |
| 709 |
AssertKernelCommandLine = option=value |
| 710 |
AssertKernelCommandLine = | arg |
| 711 |
AssertKernelCommandLine = |! arg |
| 712 |
AssertKernelCommandLine = ! arg |
| 713 |
# other options |
| 714 |
AssertDirectoryNotEmpty = |! /some/path |
| 715 |
AssertFileIsExecutable = |! /some/path |
| 716 |
AssertFileNotEmpty = |! /some/path |
| 717 |
AssertKernelVersion = |! arg |
| 718 |
AssertNeedsUpdate = |! /etc |
| 719 |
AssertPathExists = |! /some/path |
| 720 |
AssertPathIsDirectory = |! /some/path |
| 721 |
AssertPathIsEncrypted = |! /some/path |
| 722 |
AssertPathIsMountPoint = |! /some/path |
| 723 |
AssertPathIsReadWrite = |! /some/path |
| 724 |
AssertPathIsSymbolicLink = |! /some/path |
| 725 |
ConditionDirectoryNotEmpty = |! /some/path |
| 726 |
ConditionEnvironment = |! name=value |
| 727 |
ConditionFileIsExecutable = |! /some/path |
| 728 |
ConditionFileNotEmpty = |! /some/path |
| 729 |
ConditionKernelCommandLine = |! arg |
| 730 |
ConditionKernelVersion = |! arg |
| 731 |
ConditionNeedsUpdate = |! /var |
| 732 |
ConditionPathExists = |! /some/path |
| 733 |
ConditionPathIsDirectory = |! /some/path |
| 734 |
ConditionPathIsEncrypted = |! /some/path |
| 735 |
ConditionPathIsMountPoint = |! /some/path |
| 736 |
ConditionPathIsReadWrite = |! /some/path |
| 737 |
ConditionPathIsSymbolicLink = |! /some/path |
| 738 |
## invalid values |
| 739 |
AssertKernelCommandLine = !| arg |
| 740 |
AssertKernelCommandLine = || arg |
| 741 |
AssertKernelCommandLine = !! arg |
| 742 |
|
| 743 |
|
| 744 |
###### AC text * |
| 745 |
[Unit] |
| 746 |
AssertHost = hostname |
| 747 |
AssertHost = hostname* |
| 748 |
AssertHost = | hostname* |
| 749 |
AssertHost = |!hostname* |
| 750 |
AssertHost = !hostname* |
| 751 |
# other options |
| 752 |
ConditionHost = |!hostname* |
| 753 |
## invalid values |
| 754 |
AssertHost = !| hostname* |
| 755 |
AssertHost = || hostname* |
| 756 |
AssertHost = !! hostname* |
| 757 |
|
| 758 |
|
| 759 |
###### AC text glob |
| 760 |
[Unit] |
| 761 |
AssertPathExistsGlob = |!/s[ao]me/path* |
| 762 |
## invalid values |
| 763 |
ConditionPathExistsGlob = !! /s?me/path* |
| 764 |
|
| 765 |
|
| 766 |
###### AC threshold |
| 767 |
[Unit] |
| 768 |
# there is only a fixed set of time spans to choose from |
| 769 |
ConditionMemoryPressure = 10%/10sec |
| 770 |
ConditionMemoryPressure = 20%/1min |
| 771 |
ConditionMemoryPressure = | ! 30 % / 5min |
| 772 |
## invalid values |
| 773 |
# invalid time span |
| 774 |
ConditionMemoryPressure = 30%/5sec |
| 775 |
# no % |
| 776 |
ConditionMemoryPressure = 30 / 10sec |
| 777 |
# no separator before time span |
| 778 |
ConditionMemoryPressure = 30% 10sec |
| 779 |
|
| 780 |
|
| 781 |
###### AC user |
| 782 |
AssertUser = | @system |
| 783 |
AssertUser = | name |
| 784 |
AssertUser = |! @system |
| 785 |
AssertUser = ! name |
| 786 |
# other options |
| 787 |
ConditionUser = |! @system |
| 788 |
## invalid values |
| 789 |
AssertUser = !| name |
| 790 |
AssertUser = || name |
| 791 |
AssertUser = !! name |
| 792 |
|
| 793 |
|
| 794 |
###### AC virtualization |
| 795 |
# accepts boolean too |
| 796 |
AssertVirtualization = |true |
| 797 |
# see "virtualization" for all possible values |
| 798 |
AssertVirtualization = container |
| 799 |
AssertVirtualization = | container |
| 800 |
AssertVirtualization = |! container |
| 801 |
ConditionVirtualization = |! container |
| 802 |
AssertVirtualization = ! container |
| 803 |
## invalid values |
| 804 |
AssertVirtualization = ! | true |
| 805 |
AssertVirtualization = | | true |
| 806 |
AssertVirtualization = !! true |
| 807 |
# multiple values |
| 808 |
AssertVirtualization = true false |
| 809 |
|
| 810 |
|
| 811 |
###### - text |
| 812 |
[Service] |
| 813 |
AppArmorProfile = - some-profile |
| 814 |
AppArmorProfile =-profile |
| 815 |
|
| 816 |
|
| 817 |
###### -+/path list |
| 818 |
[Service] |
| 819 |
ReadWritePaths = -/some/path |
| 820 |
ReadWritePaths = -+/some/path |
| 821 |
ReadWritePaths = +/some/path |
| 822 |
ReadWritePaths =+/some/path-+/ -/some/other/path \ |
| 823 |
-+/one/more/path |
| 824 |
## invalid values |
| 825 |
ReadWritePaths = - /some/path |
| 826 |
ReadWritePaths = + /some/path |
| 827 |
ReadWritePaths = +-/some/path |
| 828 |
|
| 829 |
|
| 830 |
###### ~ address family list |
| 831 |
[Service] |
| 832 |
RestrictAddressFamilies = AF_ALG |
| 833 |
RestrictAddressFamilies = AF_APPLETALK |
| 834 |
RestrictAddressFamilies = AF_ASH |
| 835 |
RestrictAddressFamilies = AF_ATMPVC |
| 836 |
RestrictAddressFamilies = AF_ATMSVC |
| 837 |
RestrictAddressFamilies = AF_AX25 |
| 838 |
RestrictAddressFamilies = AF_BLUETOOTH |
| 839 |
RestrictAddressFamilies = AF_BRIDGE |
| 840 |
RestrictAddressFamilies = AF_CAIF |
| 841 |
RestrictAddressFamilies = AF_CAN |
| 842 |
RestrictAddressFamilies = AF_DECnet |
| 843 |
RestrictAddressFamilies = AF_ECONET |
| 844 |
RestrictAddressFamilies = AF_FILE |
| 845 |
RestrictAddressFamilies = AF_IB |
| 846 |
RestrictAddressFamilies = AF_IEEE802154 |
| 847 |
RestrictAddressFamilies = AF_INET |
| 848 |
RestrictAddressFamilies = AF_INET6 |
| 849 |
RestrictAddressFamilies = AF_IPX |
| 850 |
RestrictAddressFamilies = AF_IRDA |
| 851 |
RestrictAddressFamilies = AF_ISDN |
| 852 |
RestrictAddressFamilies = AF_IUCV |
| 853 |
RestrictAddressFamilies = AF_KCM |
| 854 |
RestrictAddressFamilies = AF_KEY |
| 855 |
RestrictAddressFamilies = AF_LLC |
| 856 |
RestrictAddressFamilies = AF_LOCAL |
| 857 |
RestrictAddressFamilies = AF_MAX |
| 858 |
RestrictAddressFamilies = AF_MPLS |
| 859 |
RestrictAddressFamilies = AF_NETBEUI |
| 860 |
RestrictAddressFamilies = AF_NETLINK |
| 861 |
RestrictAddressFamilies = AF_NETROM |
| 862 |
RestrictAddressFamilies = AF_NFC |
| 863 |
RestrictAddressFamilies = AF_PACKET |
| 864 |
RestrictAddressFamilies = AF_PHONET |
| 865 |
RestrictAddressFamilies = AF_PPPOX |
| 866 |
RestrictAddressFamilies = AF_QIPCRTR |
| 867 |
RestrictAddressFamilies = AF_RDS |
| 868 |
RestrictAddressFamilies = AF_ROSE |
| 869 |
RestrictAddressFamilies = AF_ROUTE |
| 870 |
RestrictAddressFamilies = AF_RXRPC |
| 871 |
RestrictAddressFamilies = AF_SECURITY |
| 872 |
RestrictAddressFamilies = AF_SMC |
| 873 |
RestrictAddressFamilies = AF_SNA |
| 874 |
RestrictAddressFamilies = AF_TIPC |
| 875 |
RestrictAddressFamilies = AF_UNIX |
| 876 |
RestrictAddressFamilies = AF_UNSPEC |
| 877 |
RestrictAddressFamilies = AF_VSOCK |
| 878 |
RestrictAddressFamilies = AF_WANPIPE |
| 879 |
RestrictAddressFamilies = AF_X25 |
| 880 |
RestrictAddressFamilies = AF_XDP |
| 881 |
RestrictAddressFamilies = ~ AF_XDP AF_LOCAL \ |
| 882 |
AF_SECURITY |
| 883 |
# since version 249 an additional 'none' is supported |
| 884 |
RestrictAddressFamilies = none |
| 885 |
## invalid values |
| 886 |
RestrictAddressFamilies = AF_INVALID |
| 887 |
# multiple values including `none` |
| 888 |
RestrictAddressFamilies = AF_ROUTE none AF_ROSE |
| 889 |
|
| 890 |
|
| 891 |
###### ~ capability list |
| 892 |
# all the values of capability, but multple values for a single option entry are valid |
| 893 |
[Service] |
| 894 |
AmbientCapabilities = ~ CAP_NET_ADMIN CAP_NET_RAW \ |
| 895 |
CAP_WAKE_ALARM |
| 896 |
CapabilityBoundingSet=~CAP_NET_ADMIN CAP_NET_RAW \ |
| 897 |
CAP_WAKE_ALARM |
| 898 |
|
| 899 |
|
| 900 |
###### ~ namespace list |
| 901 |
[Service] |
| 902 |
RestrictNamespaces = cgroup |
| 903 |
RestrictNamespaces = ipc |
| 904 |
RestrictNamespaces = mnt |
| 905 |
RestrictNamespaces = net |
| 906 |
RestrictNamespaces = pid |
| 907 |
RestrictNamespaces = user |
| 908 |
RestrictNamespaces = uts |
| 909 |
RestrictNamespaces = cgroup uts |
| 910 |
RestrictNamespaces = ~ cgroup pid \ |
| 911 |
uts |
| 912 |
# includes boolean |
| 913 |
RestrictNamespaces = true |
| 914 |
RestrictNamespaces = false |
| 915 |
## invalid values |
| 916 |
RestrictNamespaces = invalid |
| 917 |
RestrictNamespaces = ~ true |
| 918 |
# if boolean, no multiple values |
| 919 |
RestrictNamespaces = true cgroup |
| 920 |
|
| 921 |
|
| 922 |
###### ~ system call filter list |
| 923 |
[Service] |
| 924 |
SystemCallFilter = @aio |
| 925 |
SystemCallFilter = @basic-io |
| 926 |
SystemCallFilter = @chown |
| 927 |
SystemCallFilter = @clock |
| 928 |
SystemCallFilter = @cpu-emulation |
| 929 |
SystemCallFilter = @debug |
| 930 |
SystemCallFilter = @default |
| 931 |
SystemCallFilter = @file-system |
| 932 |
SystemCallFilter = @io-event |
| 933 |
SystemCallFilter = @ipc |
| 934 |
SystemCallFilter = @keyring |
| 935 |
SystemCallFilter = @memlock |
| 936 |
SystemCallFilter = @module |
| 937 |
SystemCallFilter = @mount |
| 938 |
SystemCallFilter = @network-io |
| 939 |
SystemCallFilter = @obsolete |
| 940 |
SystemCallFilter = @privileged |
| 941 |
SystemCallFilter = @process |
| 942 |
SystemCallFilter = @raw-io |
| 943 |
SystemCallFilter = @reboot |
| 944 |
SystemCallFilter = @resources |
| 945 |
SystemCallFilter = @setuid |
| 946 |
SystemCallFilter = @signal |
| 947 |
SystemCallFilter = @swap |
| 948 |
SystemCallFilter = @sync |
| 949 |
SystemCallFilter = @system-service |
| 950 |
SystemCallFilter = @timer |
| 951 |
SystemCallFilter = @obsolete @timer \ |
| 952 |
@swap |
| 953 |
SystemCallFilter = ~ @reboot @swap |
| 954 |
## invalid values |
| 955 |
SystemCallFilter = invalid |
| 956 |
SystemCallFilter = @invalid @ sync |
| 957 |
|
| 958 |
|
| 959 |
###### action |
| 960 |
[Unit] |
| 961 |
FailureAction = exit |
| 962 |
FailureAction = exit-force |
| 963 |
FailureAction = none |
| 964 |
FailureAction = poweroff |
| 965 |
FailureAction = poweroff-force |
| 966 |
FailureAction = poweroff-immediate |
| 967 |
FailureAction = reboot |
| 968 |
FailureAction = reboot-force |
| 969 |
FailureAction = reboot-immediate |
| 970 |
## invalid values |
| 971 |
FailureAction = invalid |
| 972 |
FailureAction = invalid exit |
| 973 |
# multiple values |
| 974 |
FailureAction = none exit |
| 975 |
|
| 976 |
|
| 977 |
###### architecture |
| 978 |
[Unit] |
| 979 |
ConditionArchitecture = alpha |
| 980 |
ConditionArchitecture = arc |
| 981 |
ConditionArchitecture = arc-be |
| 982 |
ConditionArchitecture = arm |
| 983 |
ConditionArchitecture = arm-be |
| 984 |
ConditionArchitecture = arm64 |
| 985 |
ConditionArchitecture = arm64-be |
| 986 |
ConditionArchitecture = cris |
| 987 |
ConditionArchitecture = ia64 |
| 988 |
ConditionArchitecture = m68k |
| 989 |
ConditionArchitecture = mips |
| 990 |
ConditionArchitecture = mips-le |
| 991 |
ConditionArchitecture = mips64 |
| 992 |
ConditionArchitecture = mips64-le |
| 993 |
ConditionArchitecture = parisc |
| 994 |
ConditionArchitecture = parisc64 |
| 995 |
ConditionArchitecture = ppc |
| 996 |
ConditionArchitecture = ppc-le |
| 997 |
ConditionArchitecture = ppc64 |
| 998 |
ConditionArchitecture = ppc64-le |
| 999 |
ConditionArchitecture = s390 |
| 1000 |
ConditionArchitecture = s390x |
| 1001 |
ConditionArchitecture = sh |
| 1002 |
ConditionArchitecture = sh64 |
| 1003 |
ConditionArchitecture = sparc |
| 1004 |
ConditionArchitecture = sparc64 |
| 1005 |
ConditionArchitecture = tilegx |
| 1006 |
ConditionArchitecture = x86 |
| 1007 |
ConditionArchitecture = x86-64 |
| 1008 |
# special value "native" |
| 1009 |
ConditionArchitecture = native |
| 1010 |
## invalid values |
| 1011 |
ConditionArchitecture = invalid |
| 1012 |
ConditionArchitecture = invalid x86 |
| 1013 |
# multiple values |
| 1014 |
ConditionArchitecture = sparc x86 |
| 1015 |
|
| 1016 |
|
| 1017 |
###### boolean |
| 1018 |
[Unit] |
| 1019 |
StopWhenUnneeded = 1 |
| 1020 |
StopWhenUnneeded = 0 |
| 1021 |
StopWhenUnneeded = true |
| 1022 |
StopWhenUnneeded = t |
| 1023 |
StopWhenUnneeded = false |
| 1024 |
StopWhenUnneeded = f |
| 1025 |
StopWhenUnneeded = yes |
| 1026 |
StopWhenUnneeded = y |
| 1027 |
StopWhenUnneeded = no |
| 1028 |
StopWhenUnneeded = n |
| 1029 |
StopWhenUnneeded = on |
| 1030 |
StopWhenUnneeded = off |
| 1031 |
## invalid values |
| 1032 |
StopWhenUnneeded = invalid |
| 1033 |
# multiple values |
| 1034 |
StopWhenUnneeded = false true |
| 1035 |
|
| 1036 |
|
| 1037 |
###### calendar |
| 1038 |
[Timer] |
| 1039 |
OnCalendar = daily |
| 1040 |
OnCalendar = hourly |
| 1041 |
OnCalendar = minutely |
| 1042 |
OnCalendar = monthly |
| 1043 |
OnCalendar = quarterly |
| 1044 |
OnCalendar = semiannually |
| 1045 |
OnCalendar = weekly |
| 1046 |
OnCalendar = yearly |
| 1047 |
OnCalendar = daily UTC |
| 1048 |
OnCalendar = daily utc |
| 1049 |
OnCalendar = monday *-12-* 17:00 |
| 1050 |
OnCalendar = Mon *-12-* 17:00 |
| 1051 |
## invalid values |
| 1052 |
OnCalendar = Mo *-12-* 17:00 |
| 1053 |
|
| 1054 |
|
| 1055 |
###### capability |
| 1056 |
[Unit] |
| 1057 |
ConditionCapability = CAP_AUDIT_CONTROL |
| 1058 |
ConditionCapability = CAP_AUDIT_READ |
| 1059 |
ConditionCapability = CAP_AUDIT_WRITE |
| 1060 |
ConditionCapability = CAP_BLOCK_SUSPEND |
| 1061 |
ConditionCapability = CAP_CHECKPOINT_RESTORE |
| 1062 |
ConditionCapability = CAP_CHOWN |
| 1063 |
ConditionCapability = CAP_DAC_OVERRIDE |
| 1064 |
ConditionCapability = CAP_DAC_READ_SEARCH |
| 1065 |
ConditionCapability = CAP_FOWNER |
| 1066 |
ConditionCapability = CAP_FSETID |
| 1067 |
ConditionCapability = CAP_IPC_LOCK |
| 1068 |
ConditionCapability = CAP_IPC_OWNER |
| 1069 |
ConditionCapability = CAP_KILL |
| 1070 |
ConditionCapability = CAP_LEASE |
| 1071 |
ConditionCapability = CAP_LINUX_IMMUTABLE |
| 1072 |
ConditionCapability = CAP_MAC_ADMIN |
| 1073 |
ConditionCapability = CAP_MAC_OVERRIDE |
| 1074 |
ConditionCapability = CAP_MKNOD |
| 1075 |
ConditionCapability = CAP_NET_ADMIN |
| 1076 |
ConditionCapability = CAP_NET_BIND_SERVICE |
| 1077 |
ConditionCapability = CAP_NET_BROADCAST |
| 1078 |
ConditionCapability = CAP_NET_RAW |
| 1079 |
ConditionCapability = CAP_SETGID |
| 1080 |
ConditionCapability = CAP_SETFCAP |
| 1081 |
ConditionCapability = CAP_SETPCAP |
| 1082 |
ConditionCapability = CAP_SETUID |
| 1083 |
ConditionCapability = CAP_SYS_ADMIN |
| 1084 |
ConditionCapability = CAP_SYS_BOOT |
| 1085 |
ConditionCapability = CAP_SYS_CHROOT |
| 1086 |
ConditionCapability = CAP_SYS_MODULE |
| 1087 |
ConditionCapability = CAP_SYS_NICE |
| 1088 |
ConditionCapability = CAP_SYS_PACCT |
| 1089 |
ConditionCapability = CAP_SYS_PTRACE |
| 1090 |
ConditionCapability = CAP_SYS_RAWIO |
| 1091 |
ConditionCapability = CAP_SYS_RESOURCE |
| 1092 |
ConditionCapability = CAP_SYS_TIME |
| 1093 |
ConditionCapability = CAP_SYS_TTY_CONFIG |
| 1094 |
ConditionCapability = CAP_SYSLOG |
| 1095 |
ConditionCapability = CAP_WAKE_ALARM |
| 1096 |
## invalid values |
| 1097 |
ConditionCapability = invalid |
| 1098 |
# multiple values |
| 1099 |
ConditionCapability = CAP_NET_ADMIN CAP_NET_RAW |
| 1100 |
|
| 1101 |
|
| 1102 |
###### cardinal |
| 1103 |
[Unit] |
| 1104 |
StartLimitBurst = 15 |
| 1105 |
## invalid values |
| 1106 |
StartLimitBurst = -10 |
| 1107 |
StartLimitBurst = 12.34 |
| 1108 |
StartLimitBurst = 10% |
| 1109 |
StartLimitBurst = infinity |
| 1110 |
# multiple values |
| 1111 |
StartLimitBurst = 10 20 |
| 1112 |
|
| 1113 |
|
| 1114 |
###### cardinal % infinity |
| 1115 |
[Service] |
| 1116 |
TasksMax = 15 |
| 1117 |
TasksMax = 10% |
| 1118 |
TasksMax = infinity |
| 1119 |
## invalid values |
| 1120 |
TasksMax = -10 |
| 1121 |
TasksMax = 12.34 |
| 1122 |
# multiple values |
| 1123 |
TasksMax = 10 20 |
| 1124 |
TasksMax = infinity 20 |
| 1125 |
|
| 1126 |
|
| 1127 |
###### cardinal %KGMT infinity |
| 1128 |
[Service] |
| 1129 |
MemoryMin = 123 |
| 1130 |
MemoryMin = 12K |
| 1131 |
MemoryMin = 12M |
| 1132 |
MemoryMin = 12G |
| 1133 |
MemoryMin = 12T |
| 1134 |
MemoryMin = 12 G |
| 1135 |
MemoryMin = 20% |
| 1136 |
MemoryMin = infinity |
| 1137 |
## invalid values |
| 1138 |
MemoryMin = invalid |
| 1139 |
# invalid bytes suffix |
| 1140 |
MemoryMin = 12g |
| 1141 |
MemoryMin = 12H |
| 1142 |
MemoryMin = 12 E |
| 1143 |
MemoryMin = 12P |
| 1144 |
|
| 1145 |
|
| 1146 |
###### cardinal KGMT |
| 1147 |
[Socket] |
| 1148 |
PipeSize = 123 |
| 1149 |
PipeSize = 12K |
| 1150 |
PipeSize = 12M |
| 1151 |
PipeSize = 12G |
| 1152 |
PipeSize = 12T |
| 1153 |
PipeSize = 12 G |
| 1154 |
## invalid values |
| 1155 |
PipeSize = invalid |
| 1156 |
PipeSize = infinity |
| 1157 |
# invalid bytes suffix |
| 1158 |
PipeSize = 12g |
| 1159 |
PipeSize = 12H |
| 1160 |
PipeSize = 12 E |
| 1161 |
PipeSize = 12P |
| 1162 |
PipeSize = 20% |
| 1163 |
|
| 1164 |
|
| 1165 |
###### cardinal KGMT infinity |
| 1166 |
[Service] |
| 1167 |
MemorySwapMax = 123 |
| 1168 |
MemorySwapMax = 12K |
| 1169 |
MemorySwapMax = 12M |
| 1170 |
MemorySwapMax = 12G |
| 1171 |
MemorySwapMax = 12T |
| 1172 |
MemorySwapMax = 12 G |
| 1173 |
MemorySwapMax = infinity |
| 1174 |
## invalid values |
| 1175 |
MemorySwapMax = invalid |
| 1176 |
# invalid bytes suffix |
| 1177 |
MemorySwapMax = 12g |
| 1178 |
MemorySwapMax = 12H |
| 1179 |
MemorySwapMax = 12 E |
| 1180 |
MemorySwapMax = 12P |
| 1181 |
MemorySwapMax = 20% |
| 1182 |
|
| 1183 |
|
| 1184 |
###### collect mode |
| 1185 |
[Unit] |
| 1186 |
CollectMode = inactive |
| 1187 |
CollectMode = inactive-or-failed |
| 1188 |
## invalid values |
| 1189 |
CollectMode = invalid |
| 1190 |
CollectMode = invalid inactive |
| 1191 |
# multiple values |
| 1192 |
CollectMode = inactive-or-failed inactive |
| 1193 |
|
| 1194 |
|
| 1195 |
###### condition needs update |
| 1196 |
[Unit] |
| 1197 |
ConditionNeedsUpdate = !/etc |
| 1198 |
ConditionNeedsUpdate = !/var |
| 1199 |
## invalid values |
| 1200 |
ConditionNeedsUpdate = /home |
| 1201 |
# multiple values |
| 1202 |
ConditionNeedsUpdate = /etc /var |
| 1203 |
|
| 1204 |
|
| 1205 |
###### condition user |
| 1206 |
[Unit] |
| 1207 |
ConditionUser = @system |
| 1208 |
ConditionUser = name1 |
| 1209 |
ConditionUser = 1050 |
| 1210 |
## invalid values |
| 1211 |
ConditionUser = name1.invalid |
| 1212 |
ConditionUser = -1050 |
| 1213 |
# multiple values |
| 1214 |
ConditionUser = name1 name2 |
| 1215 |
|
| 1216 |
|
| 1217 |
###### controller cg (control group controller) |
| 1218 |
[Unit] |
| 1219 |
AssertControlGroupController = cpu |
| 1220 |
AssertControlGroupController = cpuset |
| 1221 |
AssertControlGroupController = io |
| 1222 |
AssertControlGroupController = memory |
| 1223 |
AssertControlGroupController = pids |
| 1224 |
## invalid values |
| 1225 |
AssertControlGroupController = invalid |
| 1226 |
# removed as of v252 |
| 1227 |
AssertControlGroupController = blkio |
| 1228 |
AssertControlGroupController = cpuacct |
| 1229 |
AssertControlGroupController = devices |
| 1230 |
AssertControlGroupController = v1 |
| 1231 |
AssertControlGroupController = v2 |
| 1232 |
# multiple values |
| 1233 |
AssertControlGroupController = cpu memory |
| 1234 |
|
| 1235 |
|
| 1236 |
###### controller list |
| 1237 |
[Service] |
| 1238 |
# single controller |
| 1239 |
DisableControllers = blkio |
| 1240 |
DisableControllers = bpf-devices |
| 1241 |
DisableControllers = bpf-firewall |
| 1242 |
DisableControllers = cpu |
| 1243 |
DisableControllers = cpuacct |
| 1244 |
DisableControllers = cpuset |
| 1245 |
DisableControllers = devices |
| 1246 |
DisableControllers = io |
| 1247 |
DisableControllers = memory |
| 1248 |
DisableControllers = pids |
| 1249 |
# multiple controllers |
| 1250 |
DisableControllers = cpu io \ |
| 1251 |
memory |
| 1252 |
## invalid values |
| 1253 |
DisableControllers = dev invalid |
| 1254 |
|
| 1255 |
|
| 1256 |
###### cpu affinity |
| 1257 |
[Service] |
| 1258 |
# either "numa" or any of the values for "cpu index list" |
| 1259 |
CPUAffinity = numa |
| 1260 |
CPUAffinity = 0 1, 2 , \ |
| 1261 |
3, 4-8 , 10 - 12 |
| 1262 |
# since version 249 specifiers are supported |
| 1263 |
CPUAffinity = %I |
| 1264 |
## invalid values |
| 1265 |
CPUAffinity = numa-x |
| 1266 |
# no multiple "numa" |
| 1267 |
CPUAffinity = numa numa |
| 1268 |
# no CPU index list and "numa" |
| 1269 |
CPUAffinity = numa 0 1 2 |
| 1270 |
CPUAffinity = 0 1 2 numa |
| 1271 |
|
| 1272 |
|
| 1273 |
###### cpu feature |
| 1274 |
[Unit] |
| 1275 |
ConditionCPUFeature = abm |
| 1276 |
ConditionCPUFeature = adx |
| 1277 |
ConditionCPUFeature = aes |
| 1278 |
ConditionCPUFeature = apic |
| 1279 |
ConditionCPUFeature = avx |
| 1280 |
ConditionCPUFeature = avx2 |
| 1281 |
ConditionCPUFeature = bmi1 |
| 1282 |
ConditionCPUFeature = bmi2 |
| 1283 |
ConditionCPUFeature = clflush |
| 1284 |
ConditionCPUFeature = cmov |
| 1285 |
ConditionCPUFeature = constant_tsc |
| 1286 |
ConditionCPUFeature = cx16 |
| 1287 |
ConditionCPUFeature = cx8 |
| 1288 |
ConditionCPUFeature = de |
| 1289 |
ConditionCPUFeature = f16c |
| 1290 |
ConditionCPUFeature = fma3 |
| 1291 |
ConditionCPUFeature = fpu |
| 1292 |
ConditionCPUFeature = fxsr |
| 1293 |
ConditionCPUFeature = ht |
| 1294 |
ConditionCPUFeature = lahf_lm |
| 1295 |
ConditionCPUFeature = lm |
| 1296 |
ConditionCPUFeature = mca |
| 1297 |
ConditionCPUFeature = mce |
| 1298 |
ConditionCPUFeature = mmx |
| 1299 |
ConditionCPUFeature = monitor |
| 1300 |
ConditionCPUFeature = movbe |
| 1301 |
ConditionCPUFeature = msr |
| 1302 |
ConditionCPUFeature = mtrr |
| 1303 |
ConditionCPUFeature = osxsave |
| 1304 |
ConditionCPUFeature = pae |
| 1305 |
ConditionCPUFeature = pat |
| 1306 |
ConditionCPUFeature = pclmul |
| 1307 |
ConditionCPUFeature = pge |
| 1308 |
ConditionCPUFeature = pni |
| 1309 |
ConditionCPUFeature = popcnt |
| 1310 |
ConditionCPUFeature = pse |
| 1311 |
ConditionCPUFeature = pse36 |
| 1312 |
ConditionCPUFeature = rdrand |
| 1313 |
ConditionCPUFeature = rdseed |
| 1314 |
ConditionCPUFeature = rdtscp |
| 1315 |
ConditionCPUFeature = sep |
| 1316 |
ConditionCPUFeature = sha_ni |
| 1317 |
ConditionCPUFeature = sse |
| 1318 |
ConditionCPUFeature = sse2 |
| 1319 |
ConditionCPUFeature = sse4_1 |
| 1320 |
ConditionCPUFeature = sse4_2 |
| 1321 |
ConditionCPUFeature = ssse3 |
| 1322 |
ConditionCPUFeature = syscall |
| 1323 |
ConditionCPUFeature = tsc |
| 1324 |
ConditionCPUFeature = vme |
| 1325 |
ConditionCPUFeature = xsave |
| 1326 |
## invalid values |
| 1327 |
ConditionCPUFeature = invalid |
| 1328 |
# multiple values |
| 1329 |
ConditionCPUFeature = tsc mmx |
| 1330 |
|
| 1331 |
|
| 1332 |
###### cpu index list |
| 1333 |
[Service] |
| 1334 |
NUMAMask = 0 1 2 |
| 1335 |
NUMAMask = 0,1, 2 |
| 1336 |
# using ranges |
| 1337 |
NUMAMask = 0-2 |
| 1338 |
NUMAMask = 0 - 2 |
| 1339 |
NUMAMask = 0 1, 2 , \ |
| 1340 |
3, 4-8 , |
| 1341 |
## invalid values |
| 1342 |
NUMAMask = 0 invalid 2, 3;4 |
| 1343 |
NUMAMask = 0-a1 |
| 1344 |
NUMAMask = numa |
| 1345 |
|
| 1346 |
|
| 1347 |
###### cpu scheduling policy |
| 1348 |
[Service] |
| 1349 |
CPUSchedulingPolicy = batch |
| 1350 |
CPUSchedulingPolicy = fifo |
| 1351 |
CPUSchedulingPolicy = idle |
| 1352 |
CPUSchedulingPolicy = other |
| 1353 |
CPUSchedulingPolicy = rr |
| 1354 |
## invalid values |
| 1355 |
CPUSchedulingPolicy = invalid |
| 1356 |
# multiple values |
| 1357 |
CPUSchedulingPolicy = batch fifo |
| 1358 |
|
| 1359 |
|
| 1360 |
###### cpu scheduling priority |
| 1361 |
[Service] |
| 1362 |
CPUSchedulingPriority = 12 |
| 1363 |
CPUSchedulingPriority = 99 |
| 1364 |
## invalid values |
| 1365 |
CPUSchedulingPriority = invalid |
| 1366 |
CPUSchedulingPriority = -12 |
| 1367 |
CPUSchedulingPriority = 0.12 |
| 1368 |
# out of range |
| 1369 |
CPUSchedulingPriority = 0 |
| 1370 |
CPUSchedulingPriority = 100 |
| 1371 |
# multiple values |
| 1372 |
CPUSchedulingPriority = 12 34 |
| 1373 |
|
| 1374 |
|
| 1375 |
###### cpu weight |
| 1376 |
[Service] |
| 1377 |
CPUWeight = idle |
| 1378 |
# integer 1..10000 |
| 1379 |
CPUWeight = 1 |
| 1380 |
CPUWeight = 12 |
| 1381 |
CPUWeight = 123 |
| 1382 |
CPUWeight = 1234 |
| 1383 |
CPUWeight = 1234 |
| 1384 |
CPUWeight = 10000 |
| 1385 |
## invalid values |
| 1386 |
CPUWeight = -1 |
| 1387 |
CPUWeight = 0 |
| 1388 |
CPUWeight = 10001 |
| 1389 |
CPUWeight = 12345 |
| 1390 |
CPUWeight = 12.3 |
| 1391 |
CPUWeight = invalid |
| 1392 |
# multiple values |
| 1393 |
CPUWeight = 1 10000 |
| 1394 |
|
| 1395 |
|
| 1396 |
###### delegate |
| 1397 |
[Service] |
| 1398 |
# single boolean |
| 1399 |
Delegate = false |
| 1400 |
Delegate = true |
| 1401 |
# single controller |
| 1402 |
Delegate = blkio |
| 1403 |
Delegate = bpf-devices |
| 1404 |
Delegate = bpf-firewall |
| 1405 |
Delegate = cpu |
| 1406 |
Delegate = cpuacct |
| 1407 |
Delegate = cpuset |
| 1408 |
Delegate = devices |
| 1409 |
Delegate = io |
| 1410 |
Delegate = memory |
| 1411 |
Delegate = pids |
| 1412 |
# multiple controllers |
| 1413 |
Delegate = cpu io \ |
| 1414 |
memory |
| 1415 |
## invalid values |
| 1416 |
Delegate = invalid |
| 1417 |
# multiple boolean values |
| 1418 |
Delegate = on off |
| 1419 |
|
| 1420 |
|
| 1421 |
###### device cardinal KMGT |
| 1422 |
[Service] |
| 1423 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 123 |
| 1424 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12K |
| 1425 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12M |
| 1426 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12G |
| 1427 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12T |
| 1428 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12 G |
| 1429 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 \ |
| 1430 |
10M |
| 1431 |
## invalid values |
| 1432 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 20% |
| 1433 |
# invalid multiplier suffix |
| 1434 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12g |
| 1435 |
IOReadIOPSMax = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 12E |
| 1436 |
# no device |
| 1437 |
IOReadIOPSMax = 10 |
| 1438 |
IOReadIOPSMax = 10M |
| 1439 |
|
| 1440 |
|
| 1441 |
###### device policy |
| 1442 |
[Service] |
| 1443 |
DevicePolicy = auto |
| 1444 |
DevicePolicy = closed |
| 1445 |
DevicePolicy = strict |
| 1446 |
## invalid values |
| 1447 |
DevicePolicy = invalid |
| 1448 |
# multiple values |
| 1449 |
DevicePolicy = auto closed |
| 1450 |
|
| 1451 |
|
| 1452 |
###### device time span |
| 1453 |
[Service] |
| 1454 |
IODeviceLatencyTargetSec = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 123 |
| 1455 |
IODeviceLatencyTargetSec = /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 5s 20ms \ |
| 1456 |
100us |
| 1457 |
## invalid values |
| 1458 |
# no device |
| 1459 |
IODeviceLatencyTargetSec = 123 |
| 1460 |
IODeviceLatencyTargetSec = 5s 20ms 100us |
| 1461 |
|
| 1462 |
|
| 1463 |
###### exec |
| 1464 |
[Service] |
| 1465 |
# specifier and environment variable |
| 1466 |
ExecStart = /some/cmd %u arg $var1 inside${var2}word ${var3} $var4 |
| 1467 |
ExecStart = cmd1 %h arg1_1 $var1, cmd2 %u arg2_1 $var2_1\ |
| 1468 |
$var2_2 |
| 1469 |
# escapes (not exactly the same as detected by HlCStringChar) |
| 1470 |
ExecStart = cmd \, \' \" \\ \a \b \f \n \r \s \t \v \x0A \012 \u1234 \U12abcdef |
| 1471 |
# prefix |
| 1472 |
ExecStart = @/some/cmd arg "@!+-:" |
| 1473 |
ExecStart = -/some/cmd-1 -option arg |
| 1474 |
ExecStart = :/some/cmd arg |
| 1475 |
ExecStart = +/some/cmd arg |
| 1476 |
ExecStart = !/some/cmd arg |
| 1477 |
ExecStart = !!/some/cmd arg |
| 1478 |
ExecStart = @:-!!/some/cmd arg |
| 1479 |
ExecStart = @!!-:/some/cmd arg |
| 1480 |
ExecStart = @:-+/some/cmd arg |
| 1481 |
## invalid values |
| 1482 |
# invalid prefix |
| 1483 |
ExecStart = @ /some/cmd arg |
| 1484 |
ExecStart = @ -/some/cmd arg |
| 1485 |
ExecStart = +!/some/cmd arg |
| 1486 |
ExecStart = !!!/some/cmd arg |
| 1487 |
ExecStart = @+@/some/cmd arg |
| 1488 |
ExecStart = @!!+/some/cmd arg |
| 1489 |
|
| 1490 |
|
| 1491 |
###### exit status |
| 1492 |
[Service] |
| 1493 |
SuccessExitStatus = 75 |
| 1494 |
SuccessExitStatus = ADDRESS_FAMILIES |
| 1495 |
SuccessExitStatus = APPARMOR |
| 1496 |
SuccessExitStatus = BPF |
| 1497 |
SuccessExitStatus = CACHE_DIRECTORY |
| 1498 |
SuccessExitStatus = CANTCREAT |
| 1499 |
SuccessExitStatus = CAPABILITIES |
| 1500 |
SuccessExitStatus = CGROUP |
| 1501 |
SuccessExitStatus = CHDIR |
| 1502 |
SuccessExitStatus = CHOWN |
| 1503 |
SuccessExitStatus = CHROOT |
| 1504 |
SuccessExitStatus = CONFIG |
| 1505 |
SuccessExitStatus = CONFIGURATION_DIRECTORY |
| 1506 |
SuccessExitStatus = CONFIRM |
| 1507 |
SuccessExitStatus = CPUAFFINITY |
| 1508 |
SuccessExitStatus = CREDENTIALS |
| 1509 |
SuccessExitStatus = DATAERR |
| 1510 |
SuccessExitStatus = EXCEPTION |
| 1511 |
SuccessExitStatus = EXEC |
| 1512 |
SuccessExitStatus = FAILURE |
| 1513 |
SuccessExitStatus = FDS |
| 1514 |
SuccessExitStatus = GROUP |
| 1515 |
SuccessExitStatus = INVALIDARGUMENT |
| 1516 |
SuccessExitStatus = IOERR |
| 1517 |
SuccessExitStatus = IOPRIO |
| 1518 |
SuccessExitStatus = KEYRING |
| 1519 |
SuccessExitStatus = LIMITS |
| 1520 |
SuccessExitStatus = LOGS_DIRECTORY |
| 1521 |
SuccessExitStatus = MEMORY |
| 1522 |
SuccessExitStatus = NAMESPACE |
| 1523 |
SuccessExitStatus = NETWORK |
| 1524 |
SuccessExitStatus = NICE |
| 1525 |
SuccessExitStatus = NOHOST |
| 1526 |
SuccessExitStatus = NOINPUT |
| 1527 |
SuccessExitStatus = NOPERM |
| 1528 |
SuccessExitStatus = NOPERMISSION |
| 1529 |
SuccessExitStatus = NOTCONFIGURED |
| 1530 |
SuccessExitStatus = NOTIMPLEMENTED |
| 1531 |
SuccessExitStatus = NOTINSTALLED |
| 1532 |
SuccessExitStatus = NOTRUNNING |
| 1533 |
SuccessExitStatus = NOUSER |
| 1534 |
SuccessExitStatus = NO_NEW_PRIVILEGES |
| 1535 |
SuccessExitStatus = NUMA_POLICY |
| 1536 |
SuccessExitStatus = OOM_ADJUST |
| 1537 |
SuccessExitStatus = OSERR |
| 1538 |
SuccessExitStatus = OSFILE |
| 1539 |
SuccessExitStatus = PAM |
| 1540 |
SuccessExitStatus = PERSONALITY |
| 1541 |
SuccessExitStatus = PROTOCOL |
| 1542 |
SuccessExitStatus = RUNTIME_DIRECTORY |
| 1543 |
SuccessExitStatus = SECCOMP |
| 1544 |
SuccessExitStatus = SECUREBITS |
| 1545 |
SuccessExitStatus = SELINUX_CONTEXT |
| 1546 |
SuccessExitStatus = SETSCHEDULER |
| 1547 |
SuccessExitStatus = SETSID |
| 1548 |
SuccessExitStatus = SIGNAL_MASK |
| 1549 |
SuccessExitStatus = SMACK_PROCESS_LABEL |
| 1550 |
SuccessExitStatus = SOFTWARE |
| 1551 |
SuccessExitStatus = STATE_DIRECTORY |
| 1552 |
SuccessExitStatus = STDERR |
| 1553 |
SuccessExitStatus = STDIN |
| 1554 |
SuccessExitStatus = STDOUT |
| 1555 |
SuccessExitStatus = SUCCESS |
| 1556 |
SuccessExitStatus = TEMPFAIL |
| 1557 |
SuccessExitStatus = TIMERSLACK |
| 1558 |
SuccessExitStatus = UNAVAILABLE |
| 1559 |
SuccessExitStatus = USAGE |
| 1560 |
SuccessExitStatus = USER |
| 1561 |
# using signals (see values for context "signal" for a complete list of values) |
| 1562 |
SuccessExitStatus = SIGABRT |
| 1563 |
SuccessExitStatus = ADDRESS_FAMILIES 75 \ |
| 1564 |
23 SIGHUP |
| 1565 |
## invalid values |
| 1566 |
SuccessExitStatus = invalid |
| 1567 |
SuccessExitStatus = -23 |
| 1568 |
|
| 1569 |
|
| 1570 |
###### exit type |
| 1571 |
[Service] |
| 1572 |
ExitType = main |
| 1573 |
ExitType = cgroup |
| 1574 |
## invalid values |
| 1575 |
ExitType = invalid |
| 1576 |
# multiple values |
| 1577 |
ExitType = main cgroup |
| 1578 |
|
| 1579 |
|
| 1580 |
###### failure mode |
| 1581 |
[Service] |
| 1582 |
TimeoutStartFailureMode = abort |
| 1583 |
TimeoutStartFailureMode = kill |
| 1584 |
TimeoutStartFailureMode = terminate |
| 1585 |
## invalid values |
| 1586 |
TimeoutStartFailureMode = invalid |
| 1587 |
# multiple values |
| 1588 |
TimeoutStartFailureMode = abort kill |
| 1589 |
|
| 1590 |
|
| 1591 |
###### file mode |
| 1592 |
[Automount] |
| 1593 |
DirectoryMode = 755 |
| 1594 |
## invalid values |
| 1595 |
DirectoryMode = invalid |
| 1596 |
# need octal digits |
| 1597 |
DirectoryMode = 0758 |
| 1598 |
DirectoryMode = 075A |
| 1599 |
# need 3 to 4 octal digits |
| 1600 |
DirectoryMode = 07 |
| 1601 |
# multiple values |
| 1602 |
DirectoryMode = 0755 0755 |
| 1603 |
|
| 1604 |
|
| 1605 |
###### firmware |
| 1606 |
[Unit] |
| 1607 |
ConditionFirmware = uefi |
| 1608 |
ConditionFirmware = device-tree |
| 1609 |
ConditionFirmware = device-tree-compatible(some-device-tree) |
| 1610 |
ConditionFirmware = device-tree-compatible( some-device-tree ) |
| 1611 |
ConditionFirmware = smbios-field(board_name = "Custom Board") |
| 1612 |
## invalid values |
| 1613 |
ConditionFirmware = invalid |
| 1614 |
ConditionFirmware = device-tree-invalid |
| 1615 |
# missing argument |
| 1616 |
ConditionFirmware = device-tree-compatible |
| 1617 |
ConditionFirmware = device-tree-compatible() |
| 1618 |
ConditionFirmware = smbios-field |
| 1619 |
ConditionFirmware = smbios-field() |
| 1620 |
# multiple values |
| 1621 |
ConditionFirmware = uefi device-tree |
| 1622 |
|
| 1623 |
|
| 1624 |
###### fs set |
| 1625 |
[Service] |
| 1626 |
RestrictFileSystems = @auxiliary-api |
| 1627 |
RestrictFileSystems = @basic-api |
| 1628 |
RestrictFileSystems = @common-block |
| 1629 |
RestrictFileSystems = @historical-block |
| 1630 |
RestrictFileSystems = @known |
| 1631 |
RestrictFileSystems = @network |
| 1632 |
RestrictFileSystems = @privileged-api |
| 1633 |
RestrictFileSystems = @temporary |
| 1634 |
## invalid values |
| 1635 |
RestrictFileSystems = invalid |
| 1636 |
RestrictFileSystems = temporary |
| 1637 |
|
| 1638 |
|
| 1639 |
###### fs type |
| 1640 |
# A selection of file system types to be used as `Type` in mount units. |
| 1641 |
[Mount] |
| 1642 |
Type = binfmt_misc |
| 1643 |
Type = btrfs |
| 1644 |
Type = configfs |
| 1645 |
Type = debugfs |
| 1646 |
Type = devtmpfs |
| 1647 |
Type = efivarfs |
| 1648 |
Type = exfat |
| 1649 |
Type = ext2 |
| 1650 |
Type = ext3 |
| 1651 |
Type = ext4 |
| 1652 |
Type = f2fs |
| 1653 |
Type = fuse |
| 1654 |
Type = fusectl |
| 1655 |
Type = gfs2 |
| 1656 |
Type = hugetlbfs |
| 1657 |
Type = iso9660 |
| 1658 |
Type = jfs |
| 1659 |
Type = mqueue |
| 1660 |
Type = msdos |
| 1661 |
Type = nfs |
| 1662 |
Type = nilfs2 |
| 1663 |
Type = ntfs |
| 1664 |
Type = ntfs3 |
| 1665 |
Type = ocfs2 |
| 1666 |
Type = overlay |
| 1667 |
Type = proc |
| 1668 |
Type = reiserfs |
| 1669 |
Type = tmpfs |
| 1670 |
Type = tracefs |
| 1671 |
Type = udf |
| 1672 |
Type = vfat |
| 1673 |
Type = virtiofs |
| 1674 |
Type = xfs |
| 1675 |
## invalid values |
| 1676 |
Type = invalid |
| 1677 |
Type = invalid ext4 |
| 1678 |
# multiple values |
| 1679 |
Type = btrfs ext4 |
| 1680 |
|
| 1681 |
|
| 1682 |
###### fs type set list |
| 1683 |
## list of fs type names and fs set names |
| 1684 |
[Service] |
| 1685 |
RestrictFileSystems = @auxiliary-api btrfs \ |
| 1686 |
nfs @temporary unknown |
| 1687 |
|
| 1688 |
|
| 1689 |
###### group and user |
| 1690 |
[Service] |
| 1691 |
User = 0 |
| 1692 |
User = 1000 |
| 1693 |
Group = 100 |
| 1694 |
User = some-name |
| 1695 |
Group = some_name |
| 1696 |
User = _some-name-1 |
| 1697 |
User = name1 |
| 1698 |
# using specifiers |
| 1699 |
User = %i |
| 1700 |
User = name-%i |
| 1701 |
User = some-%i-name |
| 1702 |
User = %U-name |
| 1703 |
User = some-%i-name-%U |
| 1704 |
## invalid values |
| 1705 |
# no negative integers |
| 1706 |
User = -1000 |
| 1707 |
# no float |
| 1708 |
User = 100.0 |
| 1709 |
# no name with leading digit |
| 1710 |
User = 1name |
| 1711 |
# no name with leading hyphen |
| 1712 |
User = -name |
| 1713 |
# multiple values |
| 1714 |
User = 1000 1001 |
| 1715 |
|
| 1716 |
|
| 1717 |
###### group list |
| 1718 |
[Service] |
| 1719 |
SupplementaryGroups = some-name %U some%iname \ |
| 1720 |
%Uname 1001 name%U |
| 1721 |
|
| 1722 |
|
| 1723 |
###### io scheduling class |
| 1724 |
# see systemd.exec |
| 1725 |
[Service] |
| 1726 |
IOSchedulingClass = 0 |
| 1727 |
IOSchedulingClass = 1 |
| 1728 |
IOSchedulingClass = 2 |
| 1729 |
IOSchedulingClass = 3 |
| 1730 |
IOSchedulingClass = best-effort |
| 1731 |
IOSchedulingClass = idle |
| 1732 |
IOSchedulingClass = realtime |
| 1733 |
## invalid values |
| 1734 |
IOSchedulingClass = invalid |
| 1735 |
IOSchedulingClass = none |
| 1736 |
IOSchedulingClass = 4 |
| 1737 |
IOSchedulingClass = 123 |
| 1738 |
IOSchedulingClass = -1 |
| 1739 |
# multiple values |
| 1740 |
IOSchedulingClass = 1 idle |
| 1741 |
IOSchedulingClass = idle idle |
| 1742 |
IOSchedulingClass = idle 1 |
| 1743 |
|
| 1744 |
|
| 1745 |
###### ip address list |
| 1746 |
[Service] |
| 1747 |
IPAddressAllow = any |
| 1748 |
IPAddressAllow = localhost |
| 1749 |
IPAddressAllow = link-local |
| 1750 |
IPAddressDeny = multicast |
| 1751 |
IPAddressAllow = localhost \ |
| 1752 |
multicast |
| 1753 |
IPAddressAllow = 127.0.0.0/8 ::1/128 169.254.0.0/16 fe80::/64 |
| 1754 |
## invalid values |
| 1755 |
IPAddressAllow = invalid |
| 1756 |
|
| 1757 |
|
| 1758 |
###### ip bind |
| 1759 |
[Socket] |
| 1760 |
BindIPv6Only = both |
| 1761 |
BindIPv6Only = default |
| 1762 |
BindIPv6Only = ipv6-only |
| 1763 |
## invalid values |
| 1764 |
BindIPv6Only = invalid |
| 1765 |
# multiple values |
| 1766 |
BindIPv6Only = both default |
| 1767 |
|
| 1768 |
|
| 1769 |
###### io scheduling priority |
| 1770 |
[Service] |
| 1771 |
IOSchedulingPriority = 0 |
| 1772 |
IOSchedulingPriority = 1 |
| 1773 |
IOSchedulingPriority = 2 |
| 1774 |
IOSchedulingPriority = 3 |
| 1775 |
IOSchedulingPriority = 4 |
| 1776 |
IOSchedulingPriority = 5 |
| 1777 |
IOSchedulingPriority = 6 |
| 1778 |
IOSchedulingPriority = 7 |
| 1779 |
## invalid values |
| 1780 |
IOSchedulingPriority = 8 |
| 1781 |
IOSchedulingPriority = 123 |
| 1782 |
IOSchedulingPriority = -1 |
| 1783 |
# multiple values |
| 1784 |
IOSchedulingPriority = 0 3 |
| 1785 |
|
| 1786 |
|
| 1787 |
###### ip tos (terms-of-service) |
| 1788 |
[Socket] |
| 1789 |
IPTOS = 15 |
| 1790 |
IPTOS = low-cost |
| 1791 |
IPTOS = low-delay |
| 1792 |
IPTOS = reliability |
| 1793 |
IPTOS = throughput |
| 1794 |
## invalid values |
| 1795 |
IPTOS = invalid |
| 1796 |
# multiple values |
| 1797 |
IPTOS = 15 20 |
| 1798 |
IPTOS = low-delay 15 |
| 1799 |
|
| 1800 |
|
| 1801 |
###### keyring mode |
| 1802 |
[Service] |
| 1803 |
KeyringMode = inherit |
| 1804 |
KeyringMode = private |
| 1805 |
KeyringMode = shared |
| 1806 |
## invalid values |
| 1807 |
KeyringMode = invalid |
| 1808 |
# multiple values |
| 1809 |
KeyringMode = shared private |
| 1810 |
|
| 1811 |
|
| 1812 |
###### kill mode |
| 1813 |
[Service] |
| 1814 |
KillMode = control-group |
| 1815 |
KillMode = mixed |
| 1816 |
KillMode = none |
| 1817 |
KillMode = process |
| 1818 |
## invalid values |
| 1819 |
KillMode = invalid |
| 1820 |
# multiple values |
| 1821 |
KillMode = mixed process |
| 1822 |
|
| 1823 |
|
| 1824 |
###### limit bytes |
| 1825 |
[Service] |
| 1826 |
LimitFSIZE = 123 |
| 1827 |
LimitFSIZE = 12K |
| 1828 |
LimitFSIZE = 12M |
| 1829 |
LimitFSIZE = 12G |
| 1830 |
LimitFSIZE = 12T |
| 1831 |
LimitFSIZE = 12P |
| 1832 |
LimitFSIZE = 12E |
| 1833 |
LimitFSIZE = 12 G |
| 1834 |
LimitFSIZE = 12G:24G |
| 1835 |
LimitFSIZE = 12 G:24 G |
| 1836 |
LimitFSIZE = 12 G: 24 G |
| 1837 |
LimitFSIZE = 12 G :24 G |
| 1838 |
LimitFSIZE = 12 G : 24 G |
| 1839 |
LimitFSIZE = infinity |
| 1840 |
## invalid values |
| 1841 |
LimitFSIZE = invalid |
| 1842 |
# invalid bytes suffix |
| 1843 |
LimitFSIZE = 12g |
| 1844 |
LimitFSIZE = 12H |
| 1845 |
|
| 1846 |
|
| 1847 |
###### limit nice level |
| 1848 |
[Service] |
| 1849 |
LimitNICE = -1 |
| 1850 |
LimitNICE = -12 |
| 1851 |
LimitNICE = -20 |
| 1852 |
LimitNICE = +1 |
| 1853 |
LimitNICE = +12 |
| 1854 |
LimitNICE = +19 |
| 1855 |
LimitNICE = 0 |
| 1856 |
LimitNICE = 9 |
| 1857 |
LimitNICE = 12 |
| 1858 |
LimitNICE = 23 |
| 1859 |
LimitNICE = 34 |
| 1860 |
LimitNICE = 40 |
| 1861 |
LimitNICE = -10:+10 |
| 1862 |
LimitNICE = 20:30 |
| 1863 |
LimitNICE = infinity |
| 1864 |
## invalid values |
| 1865 |
LimitNICE = invalid |
| 1866 |
LimitNICE = 0.2 |
| 1867 |
LimitNICE = 20 : infinity |
| 1868 |
LimitNICE = infinity : 20 |
| 1869 |
# out of range |
| 1870 |
LimitNICE = -21 |
| 1871 |
LimitNICE = -123 |
| 1872 |
LimitNICE = +20 |
| 1873 |
LimitNICE = +123 |
| 1874 |
LimitNICE = 41 |
| 1875 |
LimitNICE = 123 |
| 1876 |
|
| 1877 |
|
| 1878 |
###### limit number |
| 1879 |
[Service] |
| 1880 |
LimitNOFILE = 123 |
| 1881 |
LimitNOFILE = 123:321 |
| 1882 |
LimitNOFILE = infinity |
| 1883 |
## invalid values |
| 1884 |
LimitNOFILE = invalid |
| 1885 |
# negative values |
| 1886 |
LimitNOFILE = -123 |
| 1887 |
|
| 1888 |
|
| 1889 |
###### limit time span |
| 1890 |
[Service] |
| 1891 |
LimitCPU = 15s 10us : 20s 5ms |
| 1892 |
LimitCPU = infinity |
| 1893 |
## invalid values |
| 1894 |
# only a single infinity |
| 1895 |
LimitCPU = infinity : infinity |
| 1896 |
LimitCPU = infinity : 10s 15ms |
| 1897 |
LimitCPU = 10s 15ms : infinity |
| 1898 |
|
| 1899 |
|
| 1900 |
###### log facility |
| 1901 |
[Service] |
| 1902 |
SyslogFacility = auth |
| 1903 |
SyslogFacility = authpriv |
| 1904 |
SyslogFacility = cron |
| 1905 |
SyslogFacility = daemon |
| 1906 |
SyslogFacility = ftp |
| 1907 |
SyslogFacility = kern |
| 1908 |
SyslogFacility = local0 |
| 1909 |
SyslogFacility = local1 |
| 1910 |
SyslogFacility = local2 |
| 1911 |
SyslogFacility = local3 |
| 1912 |
SyslogFacility = local4 |
| 1913 |
SyslogFacility = local5 |
| 1914 |
SyslogFacility = local6 |
| 1915 |
SyslogFacility = local7 |
| 1916 |
SyslogFacility = lpr |
| 1917 |
SyslogFacility = mail |
| 1918 |
SyslogFacility = news |
| 1919 |
SyslogFacility = syslog |
| 1920 |
SyslogFacility = user |
| 1921 |
SyslogFacility = uucp |
| 1922 |
## invalid values |
| 1923 |
SyslogFacility = invalid |
| 1924 |
# multiple values |
| 1925 |
SyslogFacility = cron daemon |
| 1926 |
|
| 1927 |
|
| 1928 |
###### log level |
| 1929 |
[Service] |
| 1930 |
LogLevelMax = alert |
| 1931 |
LogLevelMax = crit |
| 1932 |
LogLevelMax = debug |
| 1933 |
LogLevelMax = emerg |
| 1934 |
LogLevelMax = err |
| 1935 |
LogLevelMax = info |
| 1936 |
LogLevelMax = notice |
| 1937 |
LogLevelMax = warning |
| 1938 |
## invalid values |
| 1939 |
LogLevelMax = invalid |
| 1940 |
# multiple values |
| 1941 |
LogLevelMax = info notice |
| 1942 |
|
| 1943 |
|
| 1944 |
###### memory mapping |
| 1945 |
[Service] |
| 1946 |
CoredumpFilter = all |
| 1947 |
CoredumpFilter = default |
| 1948 |
CoredumpFilter = private-anonymous |
| 1949 |
CoredumpFilter = shared-anonymous |
| 1950 |
CoredumpFilter = private-file-backed |
| 1951 |
CoredumpFilter = shared-file-backed |
| 1952 |
CoredumpFilter = elf-headers |
| 1953 |
CoredumpFilter = private-huge |
| 1954 |
CoredumpFilter = shared-huge |
| 1955 |
CoredumpFilter = private-dax |
| 1956 |
CoredumpFilter = shared-dax |
| 1957 |
# multiple values |
| 1958 |
CoredumpFilter = private-file-backed shared-dax |
| 1959 |
## invalid values |
| 1960 |
CoredumpFilter = invalid |
| 1961 |
CoredumpFilter = private-file-backed invalid elf-headers |
| 1962 |
CoredumpFilter = invalid shared-dax |
| 1963 |
# only spaces as separator |
| 1964 |
CoredumpFilter = private-file-backed, shared-dax |
| 1965 |
|
| 1966 |
|
| 1967 |
###### mount flag |
| 1968 |
[Service] |
| 1969 |
MountFlags = private |
| 1970 |
MountFlags = shared |
| 1971 |
MountFlags = slave |
| 1972 |
## invalid values |
| 1973 |
MountFlags = invalid |
| 1974 |
# multiple values |
| 1975 |
MountFlags = shared slave |
| 1976 |
|
| 1977 |
|
| 1978 |
###### nice level |
| 1979 |
[Service] |
| 1980 |
Nice = -1 |
| 1981 |
Nice = -12 |
| 1982 |
Nice = -20 |
| 1983 |
Nice = +1 |
| 1984 |
Nice = +12 |
| 1985 |
Nice = +19 |
| 1986 |
Nice = 0 |
| 1987 |
Nice = 12 |
| 1988 |
Nice = 19 |
| 1989 |
## invalid values |
| 1990 |
Nice = invalid |
| 1991 |
Nice = 0.2 |
| 1992 |
# out of range |
| 1993 |
Nice = -21 |
| 1994 |
Nice = -123 |
| 1995 |
Nice = +20 |
| 1996 |
Nice = +123 |
| 1997 |
Nice = 20 |
| 1998 |
Nice = 30 |
| 1999 |
Nice = 123 |
| 2000 |
# multiple values |
| 2001 |
Nice = 12 34 |
| 2002 |
|
| 2003 |
|
| 2004 |
###### notify access |
| 2005 |
[Service] |
| 2006 |
NotifyAccess = all |
| 2007 |
NotifyAccess = exec |
| 2008 |
NotifyAccess = main |
| 2009 |
NotifyAccess = none |
| 2010 |
## invalid values |
| 2011 |
NotifyAccess = invalid |
| 2012 |
# multiple values |
| 2013 |
NotifyAccess = exec none |
| 2014 |
|
| 2015 |
|
| 2016 |
###### numa mask |
| 2017 |
[Service] |
| 2018 |
NUMAMask = all |
| 2019 |
NUMAMask = 1,2,3-8 |
| 2020 |
## invalid values |
| 2021 |
NUMAMask = invalid |
| 2022 |
# both all and cpu index list |
| 2023 |
NUMAMask = all, 1,2,3-8 |
| 2024 |
NUMAMask = 1,2,3-8, all |
| 2025 |
|
| 2026 |
|
| 2027 |
###### numa policy |
| 2028 |
[Service] |
| 2029 |
NUMAPolicy = bind |
| 2030 |
NUMAPolicy = default |
| 2031 |
NUMAPolicy = interleave |
| 2032 |
NUMAPolicy = local |
| 2033 |
NUMAPolicy = preferred |
| 2034 |
## invalid values |
| 2035 |
NUMAPolicy = invalid |
| 2036 |
# multiple values |
| 2037 |
NUMAPolicy = interleave local |
| 2038 |
|
| 2039 |
|
| 2040 |
###### on failure job mode |
| 2041 |
[Unit] |
| 2042 |
OnFailureJobMode = fail |
| 2043 |
OnFailureJobMode = flush |
| 2044 |
OnFailureJobMode = ignore-dependencies |
| 2045 |
OnFailureJobMode = ignore-requirements |
| 2046 |
OnFailureJobMode = isolate |
| 2047 |
OnFailureJobMode = replace |
| 2048 |
OnFailureJobMode = replace-irreversibly |
| 2049 |
## invalid values |
| 2050 |
OnFailureJobMode = invalid |
| 2051 |
OnFailureJobMode = invalid fail |
| 2052 |
# multiple values |
| 2053 |
OnFailureJobMode = replace fail |
| 2054 |
|
| 2055 |
|
| 2056 |
###### oom behavior (out-of-memory killer behavior) |
| 2057 |
[Service] |
| 2058 |
ManagedOOMSwap = auto |
| 2059 |
ManagedOOMSwap = kill |
| 2060 |
## invalid values |
| 2061 |
ManagedOOMSwap = invalid |
| 2062 |
# multiple values |
| 2063 |
ManagedOOMSwap = auto kill |
| 2064 |
|
| 2065 |
|
| 2066 |
###### oom preference (out-of-memory killer preference) |
| 2067 |
[Service] |
| 2068 |
ManagedOOMPreference = avoid |
| 2069 |
ManagedOOMPreference = none |
| 2070 |
ManagedOOMPreference = omit |
| 2071 |
## invalid values |
| 2072 |
ManagedOOMPreference = invalid |
| 2073 |
# multiple values |
| 2074 |
ManagedOOMPreference = avoid none |
| 2075 |
|
| 2076 |
|
| 2077 |
###### oom policy (out-of-memory killer policy) |
| 2078 |
[Service] |
| 2079 |
OOMPolicy = continue |
| 2080 |
OOMPolicy = kill |
| 2081 |
OOMPolicy = stop |
| 2082 |
## invalid values |
| 2083 |
OOMPolicy = invalid |
| 2084 |
# multiple values |
| 2085 |
OOMPolicy = kill stop |
| 2086 |
|
| 2087 |
|
| 2088 |
###### oom score adjust (out-of-memory killer score adjustment) |
| 2089 |
[Service] |
| 2090 |
OOMScoreAdjust = -1000 |
| 2091 |
OOMScoreAdjust = -123 |
| 2092 |
OOMScoreAdjust = 0 |
| 2093 |
OOMScoreAdjust = 321 |
| 2094 |
OOMScoreAdjust = +321 |
| 2095 |
OOMScoreAdjust = +1000 |
| 2096 |
OOMScoreAdjust = 1000 |
| 2097 |
## invalid values |
| 2098 |
OOMScoreAdjust = invalid |
| 2099 |
OOMScoreAdjust = 1.2 |
| 2100 |
# out of range |
| 2101 |
OOMScoreAdjust = -1001 |
| 2102 |
OOMScoreAdjust = +1001 |
| 2103 |
OOMScoreAdjust = 1001 |
| 2104 |
|
| 2105 |
###### open file option |
| 2106 |
[Service] |
| 2107 |
OpenFile = /some/path/:some-name:append,graceful,read-only,truncate |
| 2108 |
## invalid values |
| 2109 |
OpenFile = /some/path/:some-name:some,invalid,options |
| 2110 |
|
| 2111 |
###### percent |
| 2112 |
[Slice] |
| 2113 |
CPUQuota = 0.1% |
| 2114 |
CPUQuota = 12 % |
| 2115 |
CPUQuota = 123.4% |
| 2116 |
## invalid values |
| 2117 |
CPUQuota = 10 |
| 2118 |
CPUQuota = invalid |
| 2119 |
# multiple values |
| 2120 |
CPUQuota = 10% 20% |
| 2121 |
|
| 2122 |
|
| 2123 |
###### personality |
| 2124 |
[Service] |
| 2125 |
Personality = arm |
| 2126 |
Personality = arm-be |
| 2127 |
Personality = arm64 |
| 2128 |
Personality = arm64-be |
| 2129 |
Personality = ppc |
| 2130 |
Personality = ppc-le |
| 2131 |
Personality = ppc64 |
| 2132 |
Personality = ppc64-le |
| 2133 |
Personality = s390 |
| 2134 |
Personality = s390x |
| 2135 |
Personality = x86 |
| 2136 |
Personality = x86-64 |
| 2137 |
## invalid values |
| 2138 |
Personality = invalid |
| 2139 |
Personality = alpha |
| 2140 |
Personality = m68k |
| 2141 |
# multiple values |
| 2142 |
Personality = x86-64 s390x |
| 2143 |
|
| 2144 |
|
| 2145 |
###### proc subset |
| 2146 |
[Service] |
| 2147 |
ProcSubset = all |
| 2148 |
ProcSubset = pid |
| 2149 |
## invalid values |
| 2150 |
ProcSubset = invalid |
| 2151 |
# multiple values |
| 2152 |
ProcSubset = all pid |
| 2153 |
|
| 2154 |
|
| 2155 |
###### protect home |
| 2156 |
[Service] |
| 2157 |
ProtectHome = read-only |
| 2158 |
ProtectHome = tmpfs |
| 2159 |
ProtectHome = true |
| 2160 |
ProtectHome = false |
| 2161 |
ProtectHome = yes |
| 2162 |
## invalid values |
| 2163 |
ProtectHome = invalid |
| 2164 |
# multiple values |
| 2165 |
ProtectHome = tmpfs true |
| 2166 |
|
| 2167 |
|
| 2168 |
###### protect system |
| 2169 |
[Service] |
| 2170 |
ProtectSystem = full |
| 2171 |
ProtectSystem = strict |
| 2172 |
ProtectSystem = true |
| 2173 |
ProtectSystem = false |
| 2174 |
ProtectSystem = yes |
| 2175 |
ProtectSystem = no |
| 2176 |
## invalid values |
| 2177 |
ProtectSystem = invalid |
| 2178 |
# multiple values |
| 2179 |
ProtectSystem = full true |
| 2180 |
|
| 2181 |
|
| 2182 |
###### restart |
| 2183 |
[Service] |
| 2184 |
Restart = always |
| 2185 |
Restart = no |
| 2186 |
Restart = on-abnormal |
| 2187 |
Restart = on-abort |
| 2188 |
Restart = on-failure |
| 2189 |
Restart = on-success |
| 2190 |
Restart = on-watchdog |
| 2191 |
## invalid values |
| 2192 |
Restart = invalid |
| 2193 |
# multiple values |
| 2194 |
Restart = no on-abort |
| 2195 |
|
| 2196 |
|
| 2197 |
###### runtime directory preserve |
| 2198 |
[Service] |
| 2199 |
RuntimeDirectoryPreserve = restart |
| 2200 |
RuntimeDirectoryPreserve = true |
| 2201 |
RuntimeDirectoryPreserve = false |
| 2202 |
RuntimeDirectoryPreserve = yes |
| 2203 |
RuntimeDirectoryPreserve = no |
| 2204 |
## invalid values |
| 2205 |
RuntimeDirectoryPreserve = invalid |
| 2206 |
# multiple values |
| 2207 |
RuntimeDirectoryPreserve = restart no |
| 2208 |
|
| 2209 |
|
| 2210 |
###### secure bits list |
| 2211 |
[Service] |
| 2212 |
SecureBits = keep-caps |
| 2213 |
SecureBits = keep-caps-locked |
| 2214 |
SecureBits = no-setuid-fixup |
| 2215 |
SecureBits = no-setuid-fixup-locked |
| 2216 |
SecureBits = noroot |
| 2217 |
SecureBits = noroot-locked |
| 2218 |
SecureBits = keep-caps noroot-locked \ |
| 2219 |
no-setuid-fixup |
| 2220 |
## invalid values |
| 2221 |
SecureBits = invalid |
| 2222 |
|
| 2223 |
|
| 2224 |
###### security |
| 2225 |
[Unit] |
| 2226 |
ConditionSecurity = apparmor |
| 2227 |
ConditionSecurity = audit |
| 2228 |
ConditionSecurity = ima |
| 2229 |
ConditionSecurity = selinux |
| 2230 |
ConditionSecurity = smack |
| 2231 |
ConditionSecurity = tomoyo |
| 2232 |
ConditionSecurity = tpm2 |
| 2233 |
ConditionSecurity = uefi-secureboot |
| 2234 |
## invalid values |
| 2235 |
ConditionSecurity = invalid |
| 2236 |
# multiple values |
| 2237 |
ConditionSecurity = invalid selinux |
| 2238 |
ConditionSecurity = apparmor selinux |
| 2239 |
|
| 2240 |
|
| 2241 |
###### service type |
| 2242 |
[Service] |
| 2243 |
Type = dbus |
| 2244 |
Type = exec |
| 2245 |
Type = forking |
| 2246 |
Type = idle |
| 2247 |
Type = notify |
| 2248 |
Type = oneshot |
| 2249 |
Type = simple |
| 2250 |
## invalid values |
| 2251 |
Type = invalid |
| 2252 |
# multiple values |
| 2253 |
Type = exec forking |
| 2254 |
|
| 2255 |
|
| 2256 |
###### signal |
| 2257 |
[Service] |
| 2258 |
KillSignal = SIGABRT |
| 2259 |
KillSignal = SIGALRM |
| 2260 |
KillSignal = SIGBUS |
| 2261 |
KillSignal = SIGCHLD |
| 2262 |
KillSignal = SIGCLD |
| 2263 |
KillSignal = SIGCONT |
| 2264 |
KillSignal = SIGEMT |
| 2265 |
KillSignal = SIGFPE |
| 2266 |
KillSignal = SIGHUP |
| 2267 |
KillSignal = SIGILL |
| 2268 |
KillSignal = SIGINFO |
| 2269 |
KillSignal = SIGINT |
| 2270 |
KillSignal = SIGIO |
| 2271 |
KillSignal = SIGIOT |
| 2272 |
KillSignal = SIGKILL |
| 2273 |
KillSignal = SIGLOST |
| 2274 |
KillSignal = SIGPIPE |
| 2275 |
KillSignal = SIGPOLL |
| 2276 |
KillSignal = SIGPROF |
| 2277 |
KillSignal = SIGPWR |
| 2278 |
KillSignal = SIGQUIT |
| 2279 |
KillSignal = SIGSEGV |
| 2280 |
KillSignal = SIGSTKFLT |
| 2281 |
KillSignal = SIGSTOP |
| 2282 |
KillSignal = SIGSYS |
| 2283 |
KillSignal = SIGTERM |
| 2284 |
KillSignal = SIGTRAP |
| 2285 |
KillSignal = SIGTSTP |
| 2286 |
KillSignal = SIGTTIN |
| 2287 |
KillSignal = SIGTTOU |
| 2288 |
KillSignal = SIGUNUSED |
| 2289 |
KillSignal = SIGURG |
| 2290 |
KillSignal = SIGUSR1 |
| 2291 |
KillSignal = SIGUSR2 |
| 2292 |
KillSignal = SIGVTALRM |
| 2293 |
KillSignal = SIGWINCH |
| 2294 |
KillSignal = SIGXCPU |
| 2295 |
KillSignal = SIGXFSZ |
| 2296 |
## invalid values |
| 2297 |
KillSignal = SIG_INVALID |
| 2298 |
|
| 2299 |
|
| 2300 |
###### socket bind rule |
| 2301 |
[Service] |
| 2302 |
SocketBindAllow = any |
| 2303 |
SocketBindAllow = ipv4: |
| 2304 |
SocketBindAllow = ipv4:tcp: |
| 2305 |
SocketBindAllow = ipv4:tcp:12345 |
| 2306 |
SocketBindAllow = ipv4:tcp:1-123 |
| 2307 |
SocketBindAllow = ipv6:udp:1-123 |
| 2308 |
SocketBindAllow = ipv6: udp: 1 - 123 |
| 2309 |
SocketBindAllow = tcp: |
| 2310 |
SocketBindAllow = 12345 |
| 2311 |
SocketBindAllow = 123-456 |
| 2312 |
## invalid values |
| 2313 |
SocketBindAllow = ipv4 : |
| 2314 |
SocketBindAllow = ipv5:tcp: |
| 2315 |
SocketBindAllow = ipv4:udcp: |
| 2316 |
SocketBindAllow = tcp:ipv4 |
| 2317 |
SocketBindAllow = ipv4:tcp: 12345 |
| 2318 |
# multiple values |
| 2319 |
SocketBindAllow = any ipv4: |
| 2320 |
|
| 2321 |
|
| 2322 |
###### socket protocol |
| 2323 |
[Socket] |
| 2324 |
SocketProtocol = sctp |
| 2325 |
SocketProtocol = udplite |
| 2326 |
## invalid values |
| 2327 |
SocketProtocol = invalid |
| 2328 |
# multiple values |
| 2329 |
SocketProtocol = sctp udplite |
| 2330 |
|
| 2331 |
|
| 2332 |
###### standard input |
| 2333 |
[Service] |
| 2334 |
StandardInput = data |
| 2335 |
StandardInput = fd |
| 2336 |
StandardInput = fd:some_name |
| 2337 |
StandardInput = file:/some/absolute/path |
| 2338 |
StandardInput = null |
| 2339 |
StandardInput = socket |
| 2340 |
StandardInput = tty |
| 2341 |
StandardInput = tty-fail |
| 2342 |
StandardInput = tty-force |
| 2343 |
## invalid values |
| 2344 |
StandardInput = invalid |
| 2345 |
# multiple values |
| 2346 |
StandardInput = null tty |
| 2347 |
StandardInput = file:/some/absolute/path socket |
| 2348 |
# no absolute path immediately after `file:` |
| 2349 |
StandardInput = file: |
| 2350 |
StandardInput = file:some//path |
| 2351 |
StandardInput = file: /some/absolute/path |
| 2352 |
|
| 2353 |
|
| 2354 |
###### standard output |
| 2355 |
[Service] |
| 2356 |
# NOTE: Option StandardError accepts the same values. |
| 2357 |
StandardOutput = append:/some/absolute/path |
| 2358 |
StandardOutput = fd |
| 2359 |
StandardOutput = fd:some_name |
| 2360 |
StandardOutput = file:/some/absolute/path |
| 2361 |
StandardOutput = inherit |
| 2362 |
StandardOutput = journal |
| 2363 |
StandardOutput = journal+console |
| 2364 |
StandardOutput = kmsg |
| 2365 |
StandardOutput = kmsg+console |
| 2366 |
StandardOutput = null |
| 2367 |
StandardOutput = socket |
| 2368 |
StandardOutput = truncate:/some/absolute/path |
| 2369 |
StandardOutput = tty |
| 2370 |
## invalid values |
| 2371 |
StandardOutput = invalid |
| 2372 |
StandardOutput = syslog |
| 2373 |
# no absolute path immediately after append:, file: |
| 2374 |
StandardOutput = append: |
| 2375 |
StandardOutput = append:some/relative/path |
| 2376 |
StandardOutput = append: /some/relative/path |
| 2377 |
StandardOutput = file: |
| 2378 |
StandardOutput = file:some/relative/path |
| 2379 |
StandardOutput = file: /some/relative/path |
| 2380 |
# multiple values |
| 2381 |
StandardOutput = null tty |
| 2382 |
StandardOutput = file:/some/absolute/path socket |
| 2383 |
|
| 2384 |
|
| 2385 |
###### system call architecture |
| 2386 |
[Service] |
| 2387 |
SystemCallArchitectures = mips64-le-n32 |
| 2388 |
SystemCallArchitectures = mips64-n32 |
| 2389 |
SystemCallArchitectures = native |
| 2390 |
SystemCallArchitectures = x32 |
| 2391 |
# all values from "architecture" are also valid |
| 2392 |
SystemCallArchitectures = alpha \ |
| 2393 |
mips sparc |
| 2394 |
## invalid values |
| 2395 |
SystemCallArchitectures = invalid |
| 2396 |
|
| 2397 |
|
| 2398 |
###### system call errno |
| 2399 |
[Service] |
| 2400 |
SystemCallErrorNumber = kill |
| 2401 |
SystemCallErrorNumber = log |
| 2402 |
# from man errno(3) |
| 2403 |
SystemCallErrorNumber = EACCES |
| 2404 |
SystemCallErrorNumber = EADDRINUSE |
| 2405 |
SystemCallErrorNumber = EADDRNOTAVAIL |
| 2406 |
SystemCallErrorNumber = EAFNOSUPPORT |
| 2407 |
SystemCallErrorNumber = EAGAIN |
| 2408 |
SystemCallErrorNumber = EALREADY |
| 2409 |
SystemCallErrorNumber = EBADE |
| 2410 |
SystemCallErrorNumber = EBADF |
| 2411 |
SystemCallErrorNumber = EBADFD |
| 2412 |
SystemCallErrorNumber = EBADMSG |
| 2413 |
SystemCallErrorNumber = EBADR |
| 2414 |
SystemCallErrorNumber = EBADRQC |
| 2415 |
SystemCallErrorNumber = EBADSLT |
| 2416 |
SystemCallErrorNumber = EBUSY |
| 2417 |
SystemCallErrorNumber = ECANCELED |
| 2418 |
SystemCallErrorNumber = ECHILD |
| 2419 |
SystemCallErrorNumber = ECHRNG |
| 2420 |
SystemCallErrorNumber = ECOMM |
| 2421 |
SystemCallErrorNumber = ECONNABORTED |
| 2422 |
SystemCallErrorNumber = ECONNREFUSED |
| 2423 |
SystemCallErrorNumber = ECONNRESET |
| 2424 |
SystemCallErrorNumber = EDEADLK |
| 2425 |
SystemCallErrorNumber = EDEADLOCK |
| 2426 |
SystemCallErrorNumber = EDESTADDRREQ |
| 2427 |
SystemCallErrorNumber = EDOM |
| 2428 |
SystemCallErrorNumber = EDQUOT |
| 2429 |
SystemCallErrorNumber = EEXIST |
| 2430 |
SystemCallErrorNumber = EFAULT |
| 2431 |
SystemCallErrorNumber = EFBIG |
| 2432 |
SystemCallErrorNumber = EHOSTDOWN |
| 2433 |
SystemCallErrorNumber = EHOSTUNREACH |
| 2434 |
SystemCallErrorNumber = EHWPOISON |
| 2435 |
SystemCallErrorNumber = EIDRM |
| 2436 |
SystemCallErrorNumber = EILSEQ |
| 2437 |
SystemCallErrorNumber = EINPROGRESS |
| 2438 |
SystemCallErrorNumber = EINTR |
| 2439 |
SystemCallErrorNumber = EINVAL |
| 2440 |
SystemCallErrorNumber = EIO |
| 2441 |
SystemCallErrorNumber = EISCONN |
| 2442 |
SystemCallErrorNumber = EISDIR |
| 2443 |
SystemCallErrorNumber = EISNAM |
| 2444 |
SystemCallErrorNumber = EKEYEXPIRED |
| 2445 |
SystemCallErrorNumber = EKEYREJECTED |
| 2446 |
SystemCallErrorNumber = EKEYREVOKED |
| 2447 |
SystemCallErrorNumber = EL2HLT |
| 2448 |
SystemCallErrorNumber = EL2NSYNC |
| 2449 |
SystemCallErrorNumber = EL3HLT |
| 2450 |
SystemCallErrorNumber = EL3RST |
| 2451 |
SystemCallErrorNumber = ELIBACC |
| 2452 |
SystemCallErrorNumber = ELIBBAD |
| 2453 |
SystemCallErrorNumber = ELIBEXEC |
| 2454 |
SystemCallErrorNumber = ELIBMAX |
| 2455 |
SystemCallErrorNumber = ELIBSCN |
| 2456 |
SystemCallErrorNumber = ELNRNG |
| 2457 |
SystemCallErrorNumber = ELOOP |
| 2458 |
SystemCallErrorNumber = EMEDIUMTYPE |
| 2459 |
SystemCallErrorNumber = EMFILE |
| 2460 |
SystemCallErrorNumber = EMLINK |
| 2461 |
SystemCallErrorNumber = EMSGSIZE |
| 2462 |
SystemCallErrorNumber = EMULTIHOP |
| 2463 |
SystemCallErrorNumber = ENAMETOOLONG |
| 2464 |
SystemCallErrorNumber = ENETDOWN |
| 2465 |
SystemCallErrorNumber = ENETRESET |
| 2466 |
SystemCallErrorNumber = ENETUNREACH |
| 2467 |
SystemCallErrorNumber = ENFILE |
| 2468 |
SystemCallErrorNumber = ENOANO |
| 2469 |
SystemCallErrorNumber = ENOBUFS |
| 2470 |
SystemCallErrorNumber = ENODATA |
| 2471 |
SystemCallErrorNumber = ENODEV |
| 2472 |
SystemCallErrorNumber = ENOENT |
| 2473 |
SystemCallErrorNumber = ENOEXEC |
| 2474 |
SystemCallErrorNumber = ENOKEY |
| 2475 |
SystemCallErrorNumber = ENOLCK |
| 2476 |
SystemCallErrorNumber = ENOLINK |
| 2477 |
SystemCallErrorNumber = ENOMEDIUM |
| 2478 |
SystemCallErrorNumber = ENOMEM |
| 2479 |
SystemCallErrorNumber = ENOMSG |
| 2480 |
SystemCallErrorNumber = ENONET |
| 2481 |
SystemCallErrorNumber = ENOPKG |
| 2482 |
SystemCallErrorNumber = ENOPROTOOPT |
| 2483 |
SystemCallErrorNumber = ENOSPC |
| 2484 |
SystemCallErrorNumber = ENOSR |
| 2485 |
SystemCallErrorNumber = ENOSTR |
| 2486 |
SystemCallErrorNumber = ENOSYS |
| 2487 |
SystemCallErrorNumber = ENOTBLK |
| 2488 |
SystemCallErrorNumber = ENOTCONN |
| 2489 |
SystemCallErrorNumber = ENOTDIR |
| 2490 |
SystemCallErrorNumber = ENOTEMPTY |
| 2491 |
SystemCallErrorNumber = ENOTRECOVERABLE |
| 2492 |
SystemCallErrorNumber = ENOTSOCK |
| 2493 |
SystemCallErrorNumber = ENOTSUP |
| 2494 |
SystemCallErrorNumber = ENOTTY |
| 2495 |
SystemCallErrorNumber = ENOTUNIQ |
| 2496 |
SystemCallErrorNumber = ENXIO |
| 2497 |
SystemCallErrorNumber = EOPNOTSUPP |
| 2498 |
SystemCallErrorNumber = EOVERFLOW |
| 2499 |
SystemCallErrorNumber = EOWNERDEAD |
| 2500 |
SystemCallErrorNumber = EPERM |
| 2501 |
SystemCallErrorNumber = EPFNOSUPPORT |
| 2502 |
SystemCallErrorNumber = EPIPE |
| 2503 |
SystemCallErrorNumber = EPROTO |
| 2504 |
SystemCallErrorNumber = EPROTONOSUPPORT |
| 2505 |
SystemCallErrorNumber = EPROTOTYPE |
| 2506 |
SystemCallErrorNumber = ERANGE |
| 2507 |
SystemCallErrorNumber = EREMCHG |
| 2508 |
SystemCallErrorNumber = EREMOTE |
| 2509 |
SystemCallErrorNumber = EREMOTEIO |
| 2510 |
SystemCallErrorNumber = ERESTART |
| 2511 |
SystemCallErrorNumber = ERFKILL |
| 2512 |
SystemCallErrorNumber = EROFS |
| 2513 |
SystemCallErrorNumber = ESHUTDOWN |
| 2514 |
SystemCallErrorNumber = ESOCKTNOSUPPORT |
| 2515 |
SystemCallErrorNumber = ESPIPE |
| 2516 |
SystemCallErrorNumber = ESRCH |
| 2517 |
SystemCallErrorNumber = ESTALE |
| 2518 |
SystemCallErrorNumber = ESTRPIPE |
| 2519 |
SystemCallErrorNumber = ETIME |
| 2520 |
SystemCallErrorNumber = ETIMEDOUT |
| 2521 |
SystemCallErrorNumber = ETOOMANYREFS |
| 2522 |
SystemCallErrorNumber = ETXTBSY |
| 2523 |
SystemCallErrorNumber = EUCLEAN |
| 2524 |
SystemCallErrorNumber = EUNATCH |
| 2525 |
SystemCallErrorNumber = EUSERS |
| 2526 |
SystemCallErrorNumber = EWOULDBLOCK |
| 2527 |
SystemCallErrorNumber = EXDEV |
| 2528 |
SystemCallErrorNumber = EXFULL |
| 2529 |
SystemCallErrorNumber = 1 |
| 2530 |
SystemCallErrorNumber = 12 |
| 2531 |
SystemCallErrorNumber = 123 |
| 2532 |
SystemCallErrorNumber = 1234 |
| 2533 |
SystemCallErrorNumber = 2 |
| 2534 |
SystemCallErrorNumber = 23 |
| 2535 |
SystemCallErrorNumber = 234 |
| 2536 |
SystemCallErrorNumber = 2345 |
| 2537 |
SystemCallErrorNumber = 3 |
| 2538 |
SystemCallErrorNumber = 34 |
| 2539 |
SystemCallErrorNumber = 345 |
| 2540 |
SystemCallErrorNumber = 3456 |
| 2541 |
SystemCallErrorNumber = 3999 |
| 2542 |
SystemCallErrorNumber = 4000 |
| 2543 |
SystemCallErrorNumber = 4009 |
| 2544 |
SystemCallErrorNumber = 4019 |
| 2545 |
SystemCallErrorNumber = 4089 |
| 2546 |
SystemCallErrorNumber = 4095 |
| 2547 |
## invalid values |
| 2548 |
SystemCallErrorNumber = invalid |
| 2549 |
SystemCallErrorNumber = -12 |
| 2550 |
SystemCallErrorNumber = 0.12 |
| 2551 |
# out of range |
| 2552 |
SystemCallErrorNumber = 0 |
| 2553 |
SystemCallErrorNumber = 4096 |
| 2554 |
SystemCallErrorNumber = 5000 |
| 2555 |
# multiple values |
| 2556 |
SystemCallErrorNumber = ESPIPE EUCLEAN |
| 2557 |
SystemCallErrorNumber = 123 EUCLEAN |
| 2558 |
|
| 2559 |
|
| 2560 |
###### time span |
| 2561 |
[Timer] |
| 2562 |
# without unit |
| 2563 |
OnBootSec = 15 |
| 2564 |
# micro second |
| 2565 |
OnBootSec = 123 usec |
| 2566 |
OnBootSec = 123us |
| 2567 |
OnBootSec = 123 µs |
| 2568 |
# milli second |
| 2569 |
OnBootSec = 123 msec |
| 2570 |
OnBootSec = 123ms |
| 2571 |
# second |
| 2572 |
OnBootSec = 74 s |
| 2573 |
OnBootSec = 2sec |
| 2574 |
OnBootSec = 12 second |
| 2575 |
OnBootSec = 1 seconds |
| 2576 |
# minute |
| 2577 |
OnBootSec = 342 m |
| 2578 |
OnBootSec = 2min |
| 2579 |
OnBootSec = 7 minute |
| 2580 |
OnBootSec = 1 minutes |
| 2581 |
# hour |
| 2582 |
OnBootSec = 2 h |
| 2583 |
OnBootSec = 48 hr |
| 2584 |
OnBootSec = 2hour |
| 2585 |
OnBootSec = 2hours |
| 2586 |
# day |
| 2587 |
OnBootSec = 2 d |
| 2588 |
OnBootSec = 1 day |
| 2589 |
OnBootSec = 7 days |
| 2590 |
# week |
| 2591 |
OnBootSec = 2 w |
| 2592 |
OnBootSec = 123 week |
| 2593 |
OnBootSec = 0 weeks |
| 2594 |
# month |
| 2595 |
OnBootSec = 12 M |
| 2596 |
OnBootSec = 7 month |
| 2597 |
OnBootSec = 1 months |
| 2598 |
# year |
| 2599 |
OnBootSec = 1y |
| 2600 |
OnBootSec = 123year |
| 2601 |
OnBootSec = 12 years |
| 2602 |
# combined |
| 2603 |
OnBootSec = 55s500ms |
| 2604 |
OnBootSec = 300ms20s 5day |
| 2605 |
OnBootSec = 123 5 days 1m 12 1sec 123 \ |
| 2606 |
23 msec 13 1us |
| 2607 |
# multiple hours |
| 2608 |
OnBootSec = 7hr 2hr \ |
| 2609 |
1d 2w |
| 2610 |
## invalid values |
| 2611 |
# mi is invalid |
| 2612 |
OnBootSec = 1mi |
| 2613 |
# hs is invalid |
| 2614 |
OnBootSec = 2hs |
| 2615 |
# ds is invalid |
| 2616 |
OnBootSec = 7 ds 1y |
| 2617 |
# unit without amount |
| 2618 |
OnBootSec = 12 min sec |
| 2619 |
OnBootSec = min 1 sec |
| 2620 |
# invalid unit |
| 2621 |
OnBootSec = 12foo 1 bar |
| 2622 |
|
| 2623 |
|
| 2624 |
###### timeout |
| 2625 |
# all values from time span are valid |
| 2626 |
[Unit] |
| 2627 |
JobTimeoutSec = 0 |
| 2628 |
JobTimeoutSec = 12345 |
| 2629 |
JobTimeoutSec = 123 5 days 1m 12 1sec 123\ |
| 2630 |
23 msec 13 1us |
| 2631 |
JobTimeoutSec = infinity |
| 2632 |
## invalid values |
| 2633 |
JobTimeoutSec = invalid |
| 2634 |
JobTimeoutSec = inf |
| 2635 |
JobTimeoutSec = -10 |
| 2636 |
JobTimeoutSec = 0.235 |
| 2637 |
|
| 2638 |
|
| 2639 |
###### timestamping |
| 2640 |
[Socket] |
| 2641 |
Timestamping = ns |
| 2642 |
Timestamping = nsec |
| 2643 |
Timestamping = off |
| 2644 |
Timestamping = us |
| 2645 |
Timestamping = usec |
| 2646 |
Timestamping = µs |
| 2647 |
## invalid values |
| 2648 |
Timestamping = nanosec |
| 2649 |
# multiple values |
| 2650 |
Timestamping = nsec off |
| 2651 |
|
| 2652 |
|
| 2653 |
###### unit |
| 2654 |
[Path] |
| 2655 |
#### names |
| 2656 |
Unit = some-name.service |
| 2657 |
Unit = some.name.service |
| 2658 |
Unit = some:name.service |
| 2659 |
Unit = [email protected] |
| 2660 |
Unit = [email protected] |
| 2661 |
Unit = [email protected] |
| 2662 |
Unit = [email protected] |
| 2663 |
Unit = some@other:instance.service |
| 2664 |
Unit = some@[email protected] |
| 2665 |
Unit = some@other%iinstance.service |
| 2666 |
Unit = [email protected] |
| 2667 |
Unit = some@%i.service |
| 2668 |
Unit = dev-disk-by\x2duuid-5af23b\x2dfde6\x2d424e\x2da1bb\x2de88bc.swap |
| 2669 |
## invalid names |
| 2670 |
# \x2x is an invalid escape as 2x is no hex number |
| 2671 |
Unit = dev-disk-by\x2xuuid-5af23b\x2dfde6\x2d424e\x2da1bb\x2de88bc.swap |
| 2672 |
#### extensions |
| 2673 |
Unit = some.automount |
| 2674 |
Unit = some.device |
| 2675 |
Unit = some.mount |
| 2676 |
Unit = some.service |
| 2677 |
Unit = some.socket |
| 2678 |
Unit = some.slice |
| 2679 |
Unit = some.swap |
| 2680 |
Unit = some.target |
| 2681 |
## invalid extension |
| 2682 |
Unit = some.invalid |
| 2683 |
# incomplete unit, missing extension |
| 2684 |
Unit = some. |
| 2685 |
# multiple values |
| 2686 |
Unit = some.service some-other.service |
| 2687 |
Unit = some.service.service \ |
| 2688 |
some.other.service.service |
| 2689 |
|
| 2690 |
|
| 2691 |
###### unit list |
| 2692 |
[Unit] |
| 2693 |
#### names |
| 2694 |
After = some.service.service \ |
| 2695 |
some.other.service.service \ |
| 2696 |
[email protected] \ |
| 2697 |
some@%i.service |
| 2698 |
## invalid values |
| 2699 |
# incomplete unit, missing extension |
| 2700 |
After = some. \ |
| 2701 |
some.service \ |
| 2702 |
some-other.service |
| 2703 |
|
| 2704 |
|
| 2705 |
###### unit list socket |
| 2706 |
[Service] |
| 2707 |
Sockets = some.socket [email protected] |
| 2708 |
## invalid values |
| 2709 |
Sockets = some.service |
| 2710 |
Sockets = some.service some.socket |
| 2711 |
|
| 2712 |
|
| 2713 |
###### unit service |
| 2714 |
[Socket] |
| 2715 |
Service = some.service |
| 2716 |
Service = [email protected] |
| 2717 |
## invalid values |
| 2718 |
Service = some.invalid |
| 2719 |
# other unit types |
| 2720 |
Service = some.socket |
| 2721 |
Service = some.target |
| 2722 |
# multiple values |
| 2723 |
Service = some.service other.service |
| 2724 |
|
| 2725 |
|
| 2726 |
###### unit slice |
| 2727 |
[Service] |
| 2728 |
Slice = some.slice |
| 2729 |
Slice = [email protected] |
| 2730 |
## invalid values |
| 2731 |
# other unit types |
| 2732 |
Slice = some.service |
| 2733 |
Slice = some.target |
| 2734 |
# multiple values |
| 2735 |
Slice = some.slice other.slice |
| 2736 |
|
| 2737 |
|
| 2738 |
###### utmp mode |
| 2739 |
[Service] |
| 2740 |
UtmpMode = init |
| 2741 |
UtmpMode = login |
| 2742 |
UtmpMode = user |
| 2743 |
## invalid values |
| 2744 |
UtmpMode = invalid |
| 2745 |
# multiple values |
| 2746 |
UtmpMode = login user |
| 2747 |
|
| 2748 |
|
| 2749 |
###### variable assignments |
| 2750 |
[Service] |
| 2751 |
Environment = DISPLAY=:%i |
| 2752 |
Environment = XAUTHORITY=%t/Xauthority.%i var1=15 \ |
| 2753 |
"var2=value with spaces" EMPTY= |
| 2754 |
Environment = XDG_VTNR=vt%i |
| 2755 |
LogExtraFields = NAME=VALUE |
| 2756 |
|
| 2757 |
|
| 2758 |
###### virtualization |
| 2759 |
[Unit] |
| 2760 |
ConditionVirtualization = acrn |
| 2761 |
ConditionVirtualization = bhyve |
| 2762 |
ConditionVirtualization = bochs |
| 2763 |
ConditionVirtualization = docker |
| 2764 |
ConditionVirtualization = kvm |
| 2765 |
ConditionVirtualization = lxc |
| 2766 |
ConditionVirtualization = lxc-libvirt |
| 2767 |
ConditionVirtualization = microsoft |
| 2768 |
ConditionVirtualization = openvz |
| 2769 |
ConditionVirtualization = oracle |
| 2770 |
ConditionVirtualization = parallels |
| 2771 |
ConditionVirtualization = qemu |
| 2772 |
ConditionVirtualization = qnx |
| 2773 |
ConditionVirtualization = rkt |
| 2774 |
ConditionVirtualization = sre |
| 2775 |
ConditionVirtualization = systemd-nspawn |
| 2776 |
ConditionVirtualization = uml |
| 2777 |
ConditionVirtualization = vmware |
| 2778 |
ConditionVirtualization = wsl |
| 2779 |
ConditionVirtualization = xen |
| 2780 |
ConditionVirtualization = zvm |
| 2781 |
# using boolean |
| 2782 |
ConditionVirtualization = true |
| 2783 |
# using generic type |
| 2784 |
ConditionVirtualization = container |
| 2785 |
ConditionVirtualization = vm |
| 2786 |
# private users |
| 2787 |
ConditionVirtualization = private-users |
| 2788 |
# negated |
| 2789 |
ConditionVirtualization = !vmware |
| 2790 |
## invalid values |
| 2791 |
ConditionVirtualization = invalid |
| 2792 |
ConditionVirtualization = invalid vmware |
| 2793 |
# multiple values |
| 2794 |
ConditionVirtualization = xen vmware |
| 2795 |
|
| 2796 |
|
| 2797 |
###### weight |
| 2798 |
[Service] |
| 2799 |
# integer 1..10000 |
| 2800 |
IOWeight = 1 |
| 2801 |
IOWeight = 12 |
| 2802 |
IOWeight = 123 |
| 2803 |
IOWeight = 1234 |
| 2804 |
IOWeight = 1234 |
| 2805 |
IOWeight = 10000 |
| 2806 |
## invalid values |
| 2807 |
IOWeight = -1 |
| 2808 |
IOWeight = 0 |
| 2809 |
IOWeight = 10001 |
| 2810 |
IOWeight = 12345 |
| 2811 |
IOWeight = 12.3 |
| 2812 |
IOWeight = invalid |
| 2813 |
# multiple values |
| 2814 |
IOWeight = 1 10000 |
| 2815 |
|
| 2816 |
|
| 2817 |
###### working directory |
| 2818 |
[Service] |
| 2819 |
WorkingDirectory = ~ |
| 2820 |
WorkingDirectory = - ~ |
| 2821 |
WorkingDirectory = %h |
| 2822 |
WorkingDirectory = /some/absolute/path |
| 2823 |
WorkingDirectory = -/some/absolute-path |
| 2824 |
WorkingDirectory = - /some/absolute/path |
| 2825 |
## invalid values |
| 2826 |
# using `-` without a path |
| 2827 |
WorkingDirectory = - |
| 2828 |
# multiple paths |
| 2829 |
WorkingDirectory = ~ /some/absolute/path |
| 2830 |
WorkingDirectory = /some/absolute/path ~ |
| 2831 |
WorkingDirectory = /some/absolute/path /some/other/path |
| 2832 |
WorkingDirectory = - - /some/absolute/path |