projects/aports·blob master · refs

22 lines · 561 B

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