From 9d4af4ea6d6171cf76f1214d89d079b45f50ec23 Mon Sep 17 00:00:00 2001 From: eichehome Date: Thu, 26 Oct 2023 00:58:24 +0200 Subject: [PATCH] =?UTF-8?q?Alle=20Typen=20von=20Systemd-Units=20mit=20ihre?= =?UTF-8?q?n=20Konfigurationsoptionen=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- systemd/automount/example.automount | 9 +++ systemd/mounts/example.mount | 15 ++++ systemd/paths/example.path | 15 ++++ systemd/services/example.service | 38 +++++++++ systemd/slices/example.slice | 5 ++ systemd/sockets/example.socket | 65 +++++++++++++++ systemd/swap/example.swap | 9 +++ systemd/targets/example.target | 3 + systemd/timers/example.timer | 20 +++++ systemd/unit.example | 118 ++++++++++++++++++++++++++++ 10 files changed, 297 insertions(+) create mode 100644 systemd/automount/example.automount create mode 100644 systemd/mounts/example.mount create mode 100644 systemd/paths/example.path create mode 100644 systemd/services/example.service create mode 100644 systemd/slices/example.slice create mode 100644 systemd/sockets/example.socket create mode 100644 systemd/swap/example.swap create mode 100644 systemd/targets/example.target create mode 100644 systemd/timers/example.timer create mode 100644 systemd/unit.example diff --git a/systemd/automount/example.automount b/systemd/automount/example.automount new file mode 100644 index 0000000..bd06d9f --- /dev/null +++ b/systemd/automount/example.automount @@ -0,0 +1,9 @@ +[Unit] + +[Automount] +Where= +ExtraOptions= +DirectoryMode= +TimeoutIdleSec= + +[Install] \ No newline at end of file diff --git a/systemd/mounts/example.mount b/systemd/mounts/example.mount new file mode 100644 index 0000000..2a0cc5c --- /dev/null +++ b/systemd/mounts/example.mount @@ -0,0 +1,15 @@ +[Unit] + +[Mount] +What= +Where= +Type= +Options= +SloppyOptions= +LazyUnmount= +ReadWriteOnly= +ForceUnmount= +DirectoryMode= +TimeoutSec= + +[Install] \ No newline at end of file diff --git a/systemd/paths/example.path b/systemd/paths/example.path new file mode 100644 index 0000000..97c7a4e --- /dev/null +++ b/systemd/paths/example.path @@ -0,0 +1,15 @@ +[Unit] + +[Path] +PathExists= +PathExistsGlob= +PathChanged= +PathModified= +DirectoryNotEmpty= +Unit= +MakeDirectory= +DirectoryMode= +TriggerLimitIntervalSec= +TriggerLimitBurst= + +[Install] \ No newline at end of file diff --git a/systemd/services/example.service b/systemd/services/example.service new file mode 100644 index 0000000..64e3824 --- /dev/null +++ b/systemd/services/example.service @@ -0,0 +1,38 @@ +[Unit] + +[Service] +Type=simple|*exec*|forking|oneshot|dbus|notify|notify-reload|idle +ExitType=main|cgroup +RemainAfterExit=no +GuessMainPID= +PIDFile= +BusName= +ExecStart= +ExecStartPre= +ExecStartPost= +ExecCondition= +ExecReload= +ExecStop= +ExecStopPost= +RestartSec= +RestartSteps= +RestartMaxDelaySec= +TimeoutStartSec= +TimeoutStopSec= +TimeoutAbortSec +TimeoutSec= +TimeoutStartFailureMode= +TimeoutStopFailureMode= +RuntimeMaxSec= +RuntimeRandomizedExtraSec= +WatchdogSec= +Restart=no|on-success|on-failure|on-abnormal|on-watchdog|on-abort|always +RestartMode=normal|direct +SuccessExitStatus= +RestartPreventExitStatus= +RestartForceExitStatus= +RootDirectoryStartOnly= +NonBlocking= + + +[Install] \ No newline at end of file diff --git a/systemd/slices/example.slice b/systemd/slices/example.slice new file mode 100644 index 0000000..2461f1a --- /dev/null +++ b/systemd/slices/example.slice @@ -0,0 +1,5 @@ +[Unit] + +[Slice] + +[Install] \ No newline at end of file diff --git a/systemd/sockets/example.socket b/systemd/sockets/example.socket new file mode 100644 index 0000000..68c523b --- /dev/null +++ b/systemd/sockets/example.socket @@ -0,0 +1,65 @@ +[Unit] + +[Socket] +ListenStream= +ListenDatagram= +ListenSequentialPacket= +ListenFIFO= +ListenSpecial= +ListenNetlink= +ListenMessageQueue= +ListenUSBFunction= +SocketProtocol= +BindIPv6Only= +Backlog= +BindToDevice= +SocketUser= +SocketGroup= +SocketMode= +DirectoryMode= +Accept= +Writable= +FlushPending= +MaxConnections= +MaxConnectionsPerSource= +KeepAlive= +KeepAliveTimeSec= +KeepAliveIntervalSec= +KeepAliveProbes= +NoDelay= +Priority= +DeferAcceptSec= +ReceiveBuffer= +SendBuffer= +IPTOS= +IPTTL= +Mark= +ReusePort= +SmackLabel= +SmackLabelIPIn= +SmackLabelIPOut= +SELinuxContextFromNet= +PipeSize= +MessageQueueMaxMessages= +MessageQueueMessageSize= +FreeBind= +Transparent= +Broadcast= +PassCredentials= +PassSecurity= +PassPacketInfo= +Timestamping= +TCPCongestion= +ExecStartPre= +ExecStartPost= +ExecStopPre= +ExecStopPost= +TimeoutSec= +Service= +RemoveOnStop= +Symlinks= +FileDescriptorName= +TriggerLimitIntervalSec= +TriggerLimitBurst= + +[Install] \ No newline at end of file diff --git a/systemd/swap/example.swap b/systemd/swap/example.swap new file mode 100644 index 0000000..0d9af2a --- /dev/null +++ b/systemd/swap/example.swap @@ -0,0 +1,9 @@ +[Unit] + +[Swap] +What= +Priority= +Options= +TimeoutSec= + +[Install] \ No newline at end of file diff --git a/systemd/targets/example.target b/systemd/targets/example.target new file mode 100644 index 0000000..65cbc62 --- /dev/null +++ b/systemd/targets/example.target @@ -0,0 +1,3 @@ +[Unit] + +[Install] \ No newline at end of file diff --git a/systemd/timers/example.timer b/systemd/timers/example.timer new file mode 100644 index 0000000..3a003ba --- /dev/null +++ b/systemd/timers/example.timer @@ -0,0 +1,20 @@ +[Unit] + +[Timer] +OnActiveSec= +OnBootSec= +OnStartupSec= +OnUnitActiveSec= +OnUnitInactiveSec= +OnCalendar= +AccuracySec= +RandomizedDelaySec= +FixedRandomDelay= +OnClockChange= +OnTimezoneChange= +Unit= +Persistent= +WakeSystem= +RemainAfterElapse= + +[Install] \ No newline at end of file diff --git a/systemd/unit.example b/systemd/unit.example new file mode 100644 index 0000000..64ee199 --- /dev/null +++ b/systemd/unit.example @@ -0,0 +1,118 @@ +[Unit] +Description= +Documentation= +Wants= +Requires= +Requisite= +BindsTo= (BoundBy=) +PartOf= (ConsistsOf=) +Upholds= +Conflicts= +Before= +After= +OnFailure= +OnSuccess= +PropagatesReloadTo= +ReloadPropagatedFrom= +PropagatesStopTo= +StopPropagatedFrom= +JoinsNamespaceOf= +RequiresMountFor= +OnSuccessJobMode=replace +OnFailureJobMode=replace +IgnoreOnIsolate=false +StopWhenUnneeded=false +RefuseManualStart=false +RefuseManualStop=false +AllowIsolate=false +DefaultDependencies=yes +CollectMode=inactive +FailureAction=none +SuccessAction=none +FailureActionExitStatus= +SuccessActionExitStatus= +JobTimeoutSec=infinity +JobRunningTimeoutSec=infinity +JobTimeoutAction=none +JobTimeoutRebootArgument= +StartLimitIntervalSec=(Intervall) +StartLimitBurst=(Häufig) +StartLimitAction=none +RebootArgument= +(SourcePath=) +################## +ConditionArchitecture=x86|x86-64|ppc|ppc-le|ppc64|ppc64-le|ia64|parisc|parisc64|s390|s390x|sparc|sparc64|mips|mips-le|mips64|mips64-le|alpha|arm|arm-be|arm64|arm64-be|sh|sh64|m68k|tilegx|cris|arc|arc-be|native +ConditionFirmware=uefi|device-tree|device-tree(Wert)|smbios-field(Feld Operator Wert) +ConditionVirtualization=yes|no|vm|container|qemu|kvm|amazon|zvm|vmware|microsoft|oracle|powervm|xen|bochs|uml|bhyve|qnx|apple|sre|openvz|lxc|lxc-libvirt|systemd-nspawn|docker|podman|rkt|wsl|proot|pouch|acrn +ConditionHost= +ConditionKernelCommandLine= +ConditionKernelVersion= +ConditionCredential= +ConditionEnvironment= +ConditionSecurity=selinux|apparmor|tomoyo|ima|smack|audit|uefi-secureboot|tpm2|cvm +ConditionCapability= +ConditionACPower= +ConditionNeedsUpdate= +ConditionFirstBoot= +ConditionPathExists= +ConditionPathExistsGlob= +ConditionPathIsDirectory= +ConditionPathIsSymbolicLink= +ConditionPathIsMountPoint= +ConditionPathIsReadWrite= +ConditionPathIsEncrypted= +ConditionDirectoryNotEmpty= +ConditionFileNotEmpty= +ConditionFileIsExecutable= +ConditionUser=(uid)|@system +ConditionGroup=(gid) +ConditionControlGroupController= +ConditionMemory= +ConditionCPUs +ConditionCPUFeature=fpu|vme|de|pse|tsc|msr|pae|mce|cx8|apic|sep|mtrr|pge|mca|cmov|pat|pse36|clflush|mmx|fxsr|sse|sse2|ht|pni|pclmul|monitor|ssse3|fma3|cx16|sse4_1|sse4_2|movbe|popcnt|aes|xsave|osxsave|avx|f16c|rdrand|bmi1|avx2|bmi2|rdseed|adx|sha_ni|syscall|rdtscp|lm|lahf_lm|abm|constant_tsc +ConditionOSRelease= +ConditionMemoryPressure= +ConditionCPUPressure= +ConditionIOPressure= + +AssertArchitecture=x86|x86-64|ppc|ppc-le|ppc64|ppc64-le|ia64|parisc|parisc64|s390|s390x|sparc|sparc64|mips|mips-le|mips64|mips64-le|alpha|arm|arm-be|arm64|arm64-be|sh|sh64|m68k|tilegx|cris|arc|arc-be|native +AssertFirmware=uefi|device-tree|device-tree(Wert)|smbios-field(Feld Operator Wert) +AssertVirtualization=yes|no|vm|container|qemu|kvm|amazon|zvm|vmware|microsoft|oracle|powervm|xen|bochs|uml|bhyve|qnx|apple|sre|openvz|lxc|lxc-libvirt|systemd-nspawn|docker|podman|rkt|wsl|proot|pouch|acrn +AssertHost= +AssertKernelCommandLine= +AssertKernelVersion= +AssertCredential= +AssertEnvironment= +AssertSecurity=selinux|apparmor|tomoyo|ima|smack|audit|uefi-secureboot|tpm2|cvm +AssertCapability= +AssertACPower= +AssertNeedsUpdate= +AssertFirstBoot= +AssertPathExists= +AssertPathExistsGlob= +AssertPathIsDirectory= +AssertPathIsSymbolicLink= +AssertPathIsMountPoint= +AssertPathIsReadWrite= +AssertPathIsEncrypted= +AssertDirectoryNotEmpty= +AssertFileNotEmpty= +AssertFileIsExecutable= +AssertUser=(uid)|@system +AssertGroup=(gid) +AssertControlGroupController= +AssertMemory= +AssertCPUs +AssertCPUFeature=fpu|vme|de|pse|tsc|msr|pae|mce|cx8|apic|sep|mtrr|pge|mca|cmov|pat|pse36|clflush|mmx|fxsr|sse|sse2|ht|pni|pclmul|monitor|ssse3|fma3|cx16|sse4_1|sse4_2|movbe|popcnt|aes|xsave|osxsave|avx|f16c|rdrand|bmi1|avx2|bmi2|rdseed|adx|sha_ni|syscall|rdtscp|lm|lahf_lm|abm|constant_tsc +AssertOSRelease= +AssertMemoryPressure= +AssertCPUPressure= +AssertIOPressure= + +[Install] +RequiredBy= +WantedBy= +UpheldBy= +Alias= +Also= +DefaultInstance= \ No newline at end of file