initial import
This commit is contained in:
22
cups-filters/cups-browsed.initd
Normal file
22
cups-filters/cups-browsed.initd
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2019 Hyperbola Project
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
PIDFILE=/var/run/cups-browsed.pid
|
||||
|
||||
depend() {
|
||||
need cupsd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting cups-browsed"
|
||||
start-stop-daemon --start --make-pidfile --pidfile "${PIDFILE}" \
|
||||
--background --quiet --exec /usr/sbin/cups-browsed
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping cups-browsed"
|
||||
start-stop-daemon --stop --pidfile "${PIDFILE}" --quiet --exec /usr/sbin/cupsd
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user