Skip to content

Commit ff0c85e

Browse files
authored
Merge pull request #487 from deric/docs
Update readme to reflect changes in #485
2 parents 2b232ef + 8b26146 commit ff0c85e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,17 @@ class { 'systemd':
441441
}
442442
```
443443

444+
With enabled `udev_reload` modified rules would be applied immediately by executing `udevadm control --reload-rules`.
445+
446+
```yaml
447+
systemd::udev_reload: true
448+
systemd::manage_udevd: true
449+
systemd::udev_rules:
450+
50-md.rules:
451+
rules:
452+
- 'SUBSYSTEM=="block", KERNEL=="md*", ACTION=="change", TEST=="md/stripe_cache_size", ATTR{md/stripe_cache_size}="4096"'
453+
```
454+
444455
### udev::rules configuration
445456

446457
Custom udev rules can be defined for specific events.
@@ -453,7 +464,7 @@ systemd::udev::rule:
453464
notify: "Service[systemd-udevd]"
454465
rules:
455466
- 'ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"'
456-
- 'ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw2 %N"',
467+
- 'ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw2 %N"'
457468
```
458469

459470
### oomd configuration

0 commit comments

Comments
 (0)