blob: 283f40682f59111b335072fc31b15c4e45161d1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/sbin/openrc-run
supervisor=supervise-daemon
name="Kernel Device Manager"
description="A netlink-listening device manager similar to mdev"
extra_started_commands="reload"
description_reload="Reload the configuration file"
: ${cfgfile:="/etc/mdev.conf"}
: ${logfile:="/var/log/$RC_SVCNAME.log"}
required_files="$cfgfile"
command="/bin/mdevd"
command_args="-f $cfgfile ${command_args:-}"
supervise_daemon_args="--stdout $logfile --stderr $logfile"
depend() {
provide dev
need sysfs dev-mount
before checkfs fsck
keyword -containers -lxc -vserver
}
start_pre() {
mkdir -p /dev
}
reload() {
ebegin "Reloading $name configuration"
supervise-daemon --signal HUP
eend $?
}
|