1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/mdevd/mdevd.initd
2018-04-05 17:46:21 +02:00

33 lines
705 B
Text

#!/sbin/openrc-run
extra_started_commands="reload"
description="A netlink-listening device manager similar to mdev"
description_reload="Reload the configuration file"
: ${cfgfile:="/etc/mdev.conf"}
: ${logfile:="/var/log/$RC_SVCNAME.log"}
pidfile="/run/$RC_SVCNAME.pid"
required_files="$cfgfile"
command="/bin/mdevd"
command_args="-f $cfgfile ${command_args:-}"
command_background="yes"
start_stop_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"
start-stop-daemon --signal HUP --pidfile "$pidfile"
eend $?
}