aports/main/mdevd/mdevd.initd
Laurent Bercot 7a87aff990 main/mdevd: fix init script
(to work with usrmerge)

Signed-off-by: Laurent Bercot <ska@appnovation.com>
2024-10-29 06:36:40 +00:00

22 lines
561 B
Bash

#!/sbin/openrc-run
# Copyright 2022 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
description="a netlink-listening device manager similar to mdev"
extra_started_commands="reload"
description_reload="Reload mdevd's configuration file"
command="/usr/bin/mdevd"
command_args="-O4" # send handled events to nlgrp 4 for libudev-zero
command_background="yes"
pidfile="/run/mdevd.pid"
depend() {
provide dev
need sysfs dev-mount
before checkfs fsck
keyword -containers -lxc -vserver
}
reload() {
kill -1 `cat "$pidfile"`
}