Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
# $FreeBSD$ |
4 |
# |
5 |
# PROVIDE: cups_browsed |
6 |
# REQUIRE: LOGIN |
7 |
# KEYWORD: shutdown |
8 |
# |
9 |
# Add the following to /etc/rc.conf[.local] to enable this service |
10 |
# |
11 |
# cups_browsed_enable (bool): Set to NO by default. |
12 |
# Set it to YES to enable cups_browsed. |
13 |
# |
14 |
|
15 |
. /etc/rc.subr |
16 |
|
17 |
name=cups_browsed |
18 |
rcvar=cups_browsed_enable |
19 |
|
20 |
load_rc_config ${name} |
21 |
|
22 |
: ${cups_browsed_enable:=NO} |
23 |
|
24 |
command=/usr/sbin/daemon |
25 |
pidfile=/var/run/cups-browsed.pid |
26 |
command_args="-p ${pidfile} %%PREFIX%%/sbin/cups-browsed" |
27 |
procname="%%PREFIX%%/sbin/cups-browsed" |
28 |
|
29 |
run_rc_command "$1" |