meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:systemd [2016/12/28 09:37] – niziak | linux:systemd [2024/02/09 19:24] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== systemd ====== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| ===== HowTo ===== | ===== HowTo ===== | ||
| ==== start / stop ==== | ==== start / stop ==== | ||
| + | Rerun all generators, reload all unit files and recreate dependency tree: | ||
| <code bash> | <code bash> | ||
| systemctl daemon-reload | systemctl daemon-reload | ||
| Line 23: | Line 28: | ||
| </ | </ | ||
| + | <code bash> | ||
| + | systemd-cgtop | ||
| + | </ | ||
| ==== emergency mode ==== | ==== emergency mode ==== | ||
| Line 126: | Line 134: | ||
| === Remove startup console clearing === | === Remove startup console clearing === | ||
| - | <code> | + | <file | / |
| - | / | + | |
| [Service] | [Service] | ||
| TTYVTDisallocate=no | TTYVTDisallocate=no | ||
| - | </code> | + | </file> |
| === udev === | === udev === | ||
| Line 142: | Line 149: | ||
| </ | </ | ||
| And now device is visible from systemd: | And now device is visible from systemd: | ||
| - | < | + | < |
| systemctl -l -a | systemctl -l -a | ||
| dev-input-event0.device | dev-input-event0.device | ||
| Line 149: | Line 156: | ||
| You can create refer to device, e.g. create .wants directory | You can create refer to device, e.g. create .wants directory | ||
| < | < | ||
| + | |||
| + | === udev: start service === | ||
| + | To start service if device is inserted: | ||
| + | <file | mu.rule> | ||
| + | ..., TAG+=" | ||
| + | </ | ||
| === do not mount crypted volumes === | === do not mount crypted volumes === | ||
| Line 167: | Line 180: | ||
| TimeoutStartSec=15 | TimeoutStartSec=15 | ||
| </ | </ | ||
| + | |||
| + | ====== Issues ====== | ||
| + | |||
| + | ===== init.d services not started ===== | ||
| + | |||
| + | < | ||
| + | systemd-sysv-generator[320]: | ||
| + | systemd-sysv-generator[320]: | ||
| + | systemd-sysv-generator[320]: | ||
| + | </ | ||
| + | |||
| + | Reason is that some init scripts are symlinked to files located in **/opt** directory, which is a different FS (in this case BTRFS subvolume), and it was not mounted when **systemd-sysv-generator** was started. | ||
| + | |||
| + | **Solution: | ||
| + | [[https:// | ||
| + | |||
| + | > Under systemd-enabled systems, there' | ||
| + | > You also need to make sure that your filesystem' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||