gentoo-overlay/app-admin/usbguard/files/usbguard

28 lines
624 B
Plaintext
Raw Normal View History

#!/sbin/openrc-run
command="/usr/sbin/usbguard-daemon"
command_args="-s -f -c /etc/usbguard/usbguard-daemon.conf ${usbguard_args}"
pidfile="/var/run/usbguard.pid"
name="USBGuard Daemon"
description="Software framework for implementing USB device authorization policaies"
depend() {
need udev
}
start() {
ebegin "Starting $name"
start-stop-daemon --start --exec $command \
--pidfile $pidfile \
-- $command_args
eend $?
}
stop() {
ebegin "Stopping $name"
start-stop-daemon --stop --exec $command \
--pidfile $pidfile
eend $?
}