meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:systemd [2016/04/06 09:38] – niziak | linux:systemd [2017/05/22 14:22] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== 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 24: | ||
</ | </ | ||
+ | <code bash> | ||
+ | systemd-cgtop | ||
+ | </ | ||
==== emergency mode ==== | ==== emergency mode ==== | ||
Line 45: | Line 49: | ||
< | < | ||
- | === Start service when MMC card is inserted === | + | Enable debug console on tty9 |
+ | <code bash> | ||
+ | |||
+ | ==== Start service when MMC card is inserted | ||
Create directory " | Create directory " | ||
List of devices: <code bash> | List of devices: <code bash> | ||
Line 123: | Line 130: | ||
=== Remove startup console clearing === | === Remove startup console clearing === | ||
- | <code> | + | <file | / |
- | / | + | |
[Service] | [Service] | ||
TTYVTDisallocate=no | TTYVTDisallocate=no | ||
+ | </ | ||
+ | |||
+ | === udev === | ||
+ | In udev rules.d add TAG+=" | ||
+ | < | ||
+ | SUBSYSTEM==" | ||
+ | SYMLINK+=" | ||
+ | TAG+=" | ||
+ | OPTIONS+=" | ||
</ | </ | ||
+ | And now device is visible from systemd: | ||
+ | <code bash> | ||
+ | systemctl -l -a | ||
+ | dev-input-event0.device | ||
+ | dev-input-lcd_sandwich_touchscreen.device | ||
+ | </ | ||
+ | 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 === | ||
+ | After switching to systemd by command <code bash> | ||
+ | system boot stops and waits for password for encrypted partition (with user data - no needed to system start). | ||
+ | |||
+ | To prevent automount of crypted volumes, additional parameters ' | ||
+ | <file | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | === Debian: Set network service timeout === | ||
+ | System startup can hang forever if there is no link on ethernet cable: | ||
+ | < | ||
+ | To set timeout, add file: | ||
+ | <file | / | ||
+ | [Service] | ||
+ | TimeoutStartSec=15 | ||
+ | </ | ||