Skip to content

Latest commit

Β 

History

History
453 lines (410 loc) Β· 8.69 KB

TRANSIENT-SETTINGS.md

File metadata and controls

453 lines (410 loc) Β· 8.69 KB

What settings are currently available for transient units?

Our intention is to make all settings that are available as unit file settings also available for transient units, through the D-Bus API. At the moment, some unit types (device, swap, target) are not supported at all via unit types, but most others are pretty well supported, with some notable omissions.

The lists below contain all settings currently available in unit files. The ones currently available in transient units are prefixed with βœ“.

Generic Unit Settings

Most generic unit settings are available for transient units.

βœ“ Description=
βœ“ Documentation=
βœ“ SourcePath=
βœ“ Requires=
βœ“ Requisite=
βœ“ Wants=
βœ“ BindsTo=
βœ“ Conflicts=
βœ“ Before=
βœ“ After=
βœ“ OnFailure=
βœ“ PropagatesReloadTo=
βœ“ ReloadPropagatedFrom=
βœ“ PartOf=
βœ“ JoinsNamespaceOf=
βœ“ RequiresMountsFor=
βœ“ StopWhenUnneeded=
βœ“ RefuseManualStart=
βœ“ RefuseManualStop=
βœ“ AllowIsolate=
βœ“ DefaultDependencies=
βœ“ OnFailureJobMode=
βœ“ IgnoreOnIsolate=
βœ“ JobTimeoutSec=
βœ“ JobRunningTimeoutSec=
βœ“ JobTimeoutAction=
βœ“ JobTimeoutRebootArgument=
βœ“ StartLimitIntervalSec=SECONDS
βœ“ StartLimitBurst=UNSIGNED
βœ“ StartLimitAction=ACTION
βœ“ FailureAction=
βœ“ SuccessAction=
βœ“ AddRef=
βœ“ RebootArgument=STRING
βœ“ ConditionPathExists=
βœ“ ConditionPathExistsGlob=
βœ“ ConditionPathIsDirectory=
βœ“ ConditionPathIsSymbolicLink=
βœ“ ConditionPathIsMountPoint=
βœ“ ConditionPathIsReadWrite=
βœ“ ConditionDirectoryNotEmpty=
βœ“ ConditionFileNotEmpty=
βœ“ ConditionFileIsExecutable=
βœ“ ConditionNeedsUpdate=
βœ“ ConditionFirstBoot=
βœ“ ConditionKernelCommandLine=
βœ“ ConditionKernelVersion=
βœ“ ConditionArchitecture=
βœ“ ConditionVirtualization=
βœ“ ConditionSecurity=
βœ“ ConditionCapability=
βœ“ ConditionHost=
βœ“ ConditionACPower=
βœ“ ConditionUser=
βœ“ ConditionGroup=
βœ“ ConditionControlGroupController=
βœ“ AssertPathExists=
βœ“ AssertPathExistsGlob=
βœ“ AssertPathIsDirectory=
βœ“ AssertPathIsSymbolicLink=
βœ“ AssertPathIsMountPoint=
βœ“ AssertPathIsReadWrite=
βœ“ AssertDirectoryNotEmpty=
βœ“ AssertFileNotEmpty=
βœ“ AssertFileIsExecutable=
βœ“ AssertNeedsUpdate=
βœ“ AssertFirstBoot=
βœ“ AssertKernelCommandLine=
βœ“ AssertKernelVersion=
βœ“ AssertArchitecture=
βœ“ AssertVirtualization=
βœ“ AssertSecurity=
βœ“ AssertCapability=
βœ“ AssertHost=
βœ“ AssertACPower=
βœ“ AssertUser=
βœ“ AssertGroup=
βœ“ AssertControlGroupController=
βœ“ CollectMode=

Execution-Related Settings

All execution-related settings are available for transient units.

βœ“ WorkingDirectory=
βœ“ RootDirectory=
βœ“ RootImage=
βœ“ User=
βœ“ Group=
βœ“ SupplementaryGroups=
βœ“ Nice=
βœ“ OOMScoreAdjust=
βœ“ IOSchedulingClass=
βœ“ IOSchedulingPriority=
βœ“ CPUSchedulingPolicy=
βœ“ CPUSchedulingPriority=
βœ“ CPUSchedulingResetOnFork=
βœ“ CPUAffinity=
βœ“ UMask=
βœ“ Environment=
βœ“ EnvironmentFile=
βœ“ PassEnvironment=
βœ“ UnsetEnvironment=
βœ“ DynamicUser=
βœ“ RemoveIPC=
βœ“ StandardInput=
βœ“ StandardOutput=
βœ“ StandardError=
βœ“ StandardInputText=
βœ“ StandardInputData=
βœ“ TTYPath=
βœ“ TTYReset=
βœ“ TTYVHangup=
βœ“ TTYVTDisallocate=
βœ“ SyslogIdentifier=
βœ“ SyslogFacility=
βœ“ SyslogLevel=
βœ“ SyslogLevelPrefix=
βœ“ LogLevelMax=
βœ“ LogExtraFields=
βœ“ SecureBits=
βœ“ CapabilityBoundingSet=
βœ“ AmbientCapabilities=
βœ“ TimerSlackNSec=
βœ“ NoNewPrivileges=
βœ“ KeyringMode=
βœ“ SystemCallFilter=
βœ“ SystemCallArchitectures=
βœ“ SystemCallErrorNumber=
βœ“ MemoryDenyWriteExecute=
βœ“ RestrictNamespaces=
βœ“ RestrictRealtime=
βœ“ RestrictAddressFamilies=
βœ“ LockPersonality=
βœ“ LimitCPU=
βœ“ LimitFSIZE=
βœ“ LimitDATA=
βœ“ LimitSTACK=
βœ“ LimitCORE=
βœ“ LimitRSS=
βœ“ LimitNOFILE=
βœ“ LimitAS=
βœ“ LimitNPROC=
βœ“ LimitMEMLOCK=
βœ“ LimitLOCKS=
βœ“ LimitSIGPENDING=
βœ“ LimitMSGQUEUE=
βœ“ LimitNICE=
βœ“ LimitRTPRIO=
βœ“ LimitRTTIME=
βœ“ ReadWritePaths=
βœ“ ReadOnlyPaths=
βœ“ InaccessiblePaths=
βœ“ BindPaths=
βœ“ BindReadOnlyPaths=
βœ“ PrivateTmp=
βœ“ PrivateDevices=
βœ“ ProtectKernelTunables=
βœ“ ProtectKernelModules=
βœ“ ProtectControlGroups=
βœ“ PrivateNetwork=
βœ“ PrivateUsers=
βœ“ ProtectSystem=
βœ“ ProtectHome=
βœ“ MountFlags=
βœ“ MountAPIVFS=
βœ“ Personality=
βœ“ RuntimeDirectoryPreserve=
βœ“ RuntimeDirectoryMode=
βœ“ RuntimeDirectory=
βœ“ StateDirectoryMode=
βœ“ StateDirectory=
βœ“ CacheDirectoryMode=
βœ“ CacheDirectory=
βœ“ LogsDirectoryMode=
βœ“ LogsDirectory=
βœ“ ConfigurationDirectoryMode=
βœ“ ConfigurationDirectory=
βœ“ PAMName=
βœ“ IgnoreSIGPIPE=
βœ“ UtmpIdentifier=
βœ“ UtmpMode=
βœ“ SELinuxContext=
βœ“ SmackProcessLabel=
βœ“ AppArmorProfile=
βœ“ Slice=

Resource Control Settings

All cgroup/resource control settings are available for transient units

βœ“ CPUAccounting=
βœ“ CPUWeight=
βœ“ StartupCPUWeight=
βœ“ CPUShares=
βœ“ StartupCPUShares=
βœ“ CPUQuota=
βœ“ MemoryAccounting=
βœ“ MemoryLow=
βœ“ MemoryHigh=
βœ“ MemoryMax=
βœ“ MemorySwapMax=
βœ“ MemoryLimit=
βœ“ DeviceAllow=
βœ“ DevicePolicy=
βœ“ IOAccounting=
βœ“ IOWeight=
βœ“ StartupIOWeight=
βœ“ IODeviceWeight=
βœ“ IOReadBandwidthMax=
βœ“ IOWriteBandwidthMax=
βœ“ IOReadIOPSMax=
βœ“ IOWriteIOPSMax=
βœ“ BlockIOAccounting=
βœ“ BlockIOWeight=
βœ“ StartupBlockIOWeight=
βœ“ BlockIODeviceWeight=
βœ“ BlockIOReadBandwidth=
βœ“ BlockIOWriteBandwidth=
βœ“ TasksAccounting=
βœ“ TasksMax=
βœ“ Delegate=
βœ“ IPAccounting=
βœ“ IPAddressAllow=
βœ“ IPAddressDeny=

Process Killing Settings

All process killing settings are available for transient units:

βœ“ SendSIGKILL=
βœ“ SendSIGHUP=
βœ“ KillMode=
βœ“ KillSignal=

Service Unit Settings

Most service unit settings are available for transient units.

βœ“ PIDFile=
βœ“ ExecStartPre=
βœ“ ExecStart=
βœ“ ExecStartPost=
βœ“ ExecReload=
βœ“ ExecStop=
βœ“ ExecStopPost=
βœ“ RestartSec=
βœ“ TimeoutStartSec=
βœ“ TimeoutStopSec=
βœ“ TimeoutSec=
βœ“ RuntimeMaxSec=
βœ“ WatchdogSec=
βœ“ Type=
βœ“ Restart=
βœ“ PermissionsStartOnly=
βœ“ RootDirectoryStartOnly=
βœ“ RemainAfterExit=
βœ“ GuessMainPID=
βœ“ RestartPreventExitStatus=
βœ“ RestartForceExitStatus=
βœ“ SuccessExitStatus=
βœ“ NonBlocking=
βœ“ BusName=
βœ“ FileDescriptorStoreMax=
βœ“ NotifyAccess=
  Sockets=
βœ“ USBFunctionDescriptors=
βœ“ USBFunctionStrings=

Mount Unit Settings

All mount unit settings are available to transient units:

βœ“ What=
βœ“ Where=
βœ“ Options=
βœ“ Type=
βœ“ TimeoutSec=
βœ“ DirectoryMode=
βœ“ SloppyOptions=
βœ“ LazyUnmount=
βœ“ ForceUnmount=

Automount Unit Settings

All automount unit setting is available to transient units:

βœ“ Where=
βœ“ DirectoryMode=
βœ“ TimeoutIdleSec=

Timer Unit Settings

Most timer unit settings are available to transient units.

βœ“ OnCalendar=
βœ“ OnActiveSec=
βœ“ OnBootSec=
βœ“ OnStartupSec=
βœ“ OnUnitActiveSec=
βœ“ OnUnitInactiveSec=
βœ“ Persistent=
βœ“ WakeSystem=
βœ“ RemainAfterElapse=
βœ“ AccuracySec=
βœ“ RandomizedDelaySec=
  Unit=

Slice Unit Settings

Slice units are fully supported as transient units, but they have no settings of their own beyond the generic unit and resource control settings.

Scope Unit Settings

Scope units are fully supported as transient units (in fact they only exist as such).

βœ“ TimeoutStopSec=

Socket Unit Settings

Most socket unit settings are available to transient units.

βœ“ ListenStream=
βœ“ ListenDatagram=
βœ“ ListenSequentialPacket=
βœ“ ListenFIFO=
βœ“ ListenNetlink=
βœ“ ListenSpecial=
βœ“ ListenMessageQueue=
βœ“ ListenUSBFunction=
βœ“ SocketProtocol=
βœ“ BindIPv6Only=
βœ“ Backlog=
βœ“ BindToDevice=
βœ“ ExecStartPre=
βœ“ ExecStartPost=
βœ“ ExecStopPre=
βœ“ ExecStopPost=
βœ“ TimeoutSec=
βœ“ SocketUser=
βœ“ SocketGroup=
βœ“ SocketMode=
βœ“ DirectoryMode=
βœ“ Accept=
βœ“ Writable=
βœ“ MaxConnections=
βœ“ MaxConnectionsPerSource=
βœ“ KeepAlive=
βœ“ KeepAliveTimeSec=
βœ“ KeepAliveIntervalSec=
βœ“ KeepAliveProbes=
βœ“ DeferAcceptSec=
βœ“ NoDelay=
βœ“ Priority=
βœ“ ReceiveBuffer=
βœ“ SendBuffer=
βœ“ IPTOS=
βœ“ IPTTL=
βœ“ Mark=
βœ“ PipeSize=
βœ“ FreeBind=
βœ“ Transparent=
βœ“ Broadcast=
βœ“ PassCredentials=
βœ“ PassSecurity=
βœ“ TCPCongestion=
βœ“ ReusePort=
βœ“ MessageQueueMaxMessages=
βœ“ MessageQueueMessageSize=
βœ“ RemoveOnStop=
βœ“ Symlinks=
βœ“ FileDescriptorName=
  Service=
βœ“ TriggerLimitIntervalSec=
βœ“ TriggerLimitBurst=
βœ“ SmackLabel=
βœ“ SmackLabelIPIn=
βœ“ SmackLabelIPOut=
βœ“ SELinuxContextFromNet=

Swap Unit Settings

Swap units are currently not available at all as transient units:

  What=
  Priority=
  Options=
  TimeoutSec=

Path Unit Settings

Most path unit settings are available to transient units.

βœ“ PathExists=
βœ“ PathExistsGlob=
βœ“ PathChanged=
βœ“ PathModified=
βœ“ DirectoryNotEmpty=
  Unit=
βœ“ MakeDirectory=
βœ“ DirectoryMode=

Install Section

The [Install] section is currently not available at all for transient units, and it probably doesn't even make sense.

  Alias=
  WantedBy=
  RequiredBy=
  Also=
  DefaultInstance=