Skip to content
Discussion options

You must be logged in to vote

I give up! I wrote my own service file :

#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command="/sbin/udevd"
command_args="${udev_opts}"
command_background=yes
pidfile="/var/run/udev.pid"
description="udev manages device permissions and symbolic links in /dev"
extra_started_commands="reload"
description_reload="Reload the udev rules and databases"

depend() {
	need sysfs dev-mount
	before checkfs fsck
	keyword -containers
}

start() {
	${command} --daemon
}

stop() {
	ebegin "Stopping ${name:-$RC_SVCNAME}"
	udevadm control --exit ||
		start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
	eend $…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@navi-desu
Comment options

@lidgnulinux
Comment options

@lidgnulinux
Comment options

@lidgnulinux
Comment options

Comment options

You must be logged in to vote
3 replies
@lidgnulinux
Comment options

@floppym
Comment options

@lidgnulinux
Comment options

Comment options

You must be logged in to vote
1 reply
@navi-desu
Comment options

Answer selected by lidgnulinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants