update
This commit is contained in:
parent
0167d52325
commit
bb16b3fceb
17 changed files with 100 additions and 11 deletions
|
@ -14,7 +14,7 @@ Fields inside the mount section:
|
|||
- `Options` : Mount options to use when mounting. This takes a comma-separated list of options. This setting is optional.
|
||||
|
||||
## Example
|
||||
```
|
||||
```ini
|
||||
[Unit]
|
||||
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
|
||||
SourcePath=/etc/fstab
|
||||
|
@ -24,4 +24,4 @@ What=/dev/sda1
|
|||
Where=/mnt
|
||||
Type=btrfs
|
||||
Options=nosuid,nodev,nofail,compress=zstd,ro
|
||||
```
|
||||
```
|
||||
|
|
|
@ -18,11 +18,11 @@ systemctl list-timers
|
|||
|
||||
## Examples
|
||||
### Monotonic timer
|
||||
|
||||
A timer which will start 15 minutes after boot and again every week while the system is running.
|
||||
|
||||
`/etc/systemd/system/foo.timer`
|
||||
```
|
||||
```ini
|
||||
# /etc/systemd/system/foo.timer
|
||||
|
||||
[Unit]
|
||||
Description=Run foo weekly and on boot
|
||||
|
||||
|
@ -35,11 +35,11 @@ WantedBy=timers.target
|
|||
```
|
||||
|
||||
### Realtime timer
|
||||
|
||||
A timer which starts once a week (at 12:00am on Monday). When activated, it triggers the service immediately if it missed the last start time (option `Persistent=true`), for example due to the system being powered off:
|
||||
|
||||
`/etc/systemd/system/foo.timer`
|
||||
```
|
||||
```ini
|
||||
# /etc/systemd/system/foo.timer
|
||||
|
||||
[Unit]
|
||||
Description=Run foo weekly
|
||||
|
||||
|
@ -59,4 +59,4 @@ An asterisk may be used to specify any value and commas may be used to list poss
|
|||
|
||||
In the below example the service is run the first four days of each month at 12:00 PM, but _only_ if that day is a Monday or a Tuesday.
|
||||
|
||||
`OnCalendar=Mon,Tue *-*-01..04 12:00:00`
|
||||
`OnCalendar=Mon,Tue *-*-01..04 12:00:00`
|
||||
|
|
|
@ -65,6 +65,11 @@ systemctl mask unit
|
|||
systemctl unmask unit
|
||||
```
|
||||
|
||||
Get a list of overridden unit files:
|
||||
```shell
|
||||
systemd-delta
|
||||
```
|
||||
|
||||
## Power Management
|
||||
Shut down and reboot the system
|
||||
`systemctl reboot`
|
||||
|
@ -98,7 +103,7 @@ There are several different start-up types to consider when writing a custom ser
|
|||
- `Type=idle`: _systemd_ will delay execution of the service binary until all jobs are dispatched. Other than that behavior is very similar to `Type=simple`.
|
||||
|
||||
#### Example
|
||||
```
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Description
|
||||
After=network.target
|
||||
|
@ -149,4 +154,4 @@ Below are the fields the Install section has:
|
|||
Systemd supports other unit types than `.service`.
|
||||
Some include:
|
||||
- [Systemd-Timers](Systemd-Timers.md)
|
||||
- [Systemd-Mounts](Systemd-Mounts.md)
|
||||
- [Systemd-Mounts](Systemd-Mounts.md)
|
||||
|
|
6
technology/linux/systemd/hostnamectl.md
Normal file
6
technology/linux/systemd/hostnamectl.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# hostnamectl
|
||||
#wip
|
6
technology/linux/systemd/journalctl.md
Normal file
6
technology/linux/systemd/journalctl.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# journalctl
|
||||
#wip
|
7
technology/linux/systemd/localectl.md
Normal file
7
technology/linux/systemd/localectl.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# localectl
|
||||
#wip
|
||||
https://man.archlinux.org/man/localectl.1
|
6
technology/linux/systemd/loginctl.md
Normal file
6
technology/linux/systemd/loginctl.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# loginctl
|
||||
#wip
|
6
technology/linux/systemd/networkctl.md
Normal file
6
technology/linux/systemd/networkctl.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# networkctl
|
||||
#wip
|
6
technology/linux/systemd/systemd-analyze.md
Normal file
6
technology/linux/systemd/systemd-analyze.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-analyze
|
||||
#wip
|
6
technology/linux/systemd/systemd-ask-pass.md
Normal file
6
technology/linux/systemd/systemd-ask-pass.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-ask-pass
|
||||
#wip
|
6
technology/linux/systemd/systemd-detect-virt.md
Normal file
6
technology/linux/systemd/systemd-detect-virt.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-detect-virt
|
||||
#wip
|
6
technology/linux/systemd/systemd-firstboot.md
Normal file
6
technology/linux/systemd/systemd-firstboot.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-firstboot
|
||||
#wip
|
6
technology/linux/systemd/systemd-inhibit.md
Normal file
6
technology/linux/systemd/systemd-inhibit.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-inhibit
|
||||
#wip
|
6
technology/linux/systemd/systemd-resolve.md
Normal file
6
technology/linux/systemd/systemd-resolve.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# systemd-resolve
|
||||
#wip
|
9
technology/linux/systemd/systemd-timesyncd.md
Normal file
9
technology/linux/systemd/systemd-timesyncd.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
obj: application
|
||||
arch-wiki: https://wiki.archlinux.org/title/Systemd-timesyncd
|
||||
---
|
||||
|
||||
# systemd-timesyncd
|
||||
#wip
|
||||
|
||||
timedatectl
|
6
technology/linux/systemd/userdbctl.md
Normal file
6
technology/linux/systemd/userdbctl.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
obj: application
|
||||
---
|
||||
|
||||
# userdbctl
|
||||
#wip
|
Loading…
Add table
Add a link
Reference in a new issue