Document user unit system targets
This commit is contained in:
parent
7d13184583
commit
38a6e4b36f
1 changed files with 17 additions and 2 deletions
19
README.md
19
README.md
|
@ -4,6 +4,21 @@ A collection of scripts and systemd services which might be useful for servers.
|
||||||
|
|
||||||
After you pulled, use `./sync` and pick an action which should be self-explaining.
|
After you pulled, use `./sync` and pick an action which should be self-explaining.
|
||||||
|
|
||||||
Services and scripts don't depend on each other but have hints that they can be combined (out-commented line in service files for `systemd_failure_notify@.service` for example).
|
Services and scripts don't depend on each other but have hints that they can be
|
||||||
|
combined (out-commented line in service files for `systemd_failure_notify@.service`
|
||||||
|
for example).
|
||||||
|
|
||||||
Use at your own risk.
|
Use at your own risk.
|
||||||
|
|
||||||
|
## User network-online.target
|
||||||
|
|
||||||
|
By default, no user unit can depend on system events like `network-online.target`.
|
||||||
|
To enable this, you need to link the proper `.target` which you like to use inside
|
||||||
|
the user service before.
|
||||||
|
|
||||||
|
```
|
||||||
|
systemctl --user link /usr/lib/systemd/system/network-online.target
|
||||||
|
```
|
||||||
|
|
||||||
|
This would make `network-online.target` available after a _reboot_ to the user
|
||||||
|
who issued the command.
|
Loading…
Reference in a new issue