28 lines
624 B
Plaintext
28 lines
624 B
Plaintext
#!/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 $?
|
|
}
|