Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/moused
| Show All 12 Lines | |||||
| rcvar="moused_enable" | rcvar="moused_enable" | ||||
| command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
| start_cmd="moused_start" | start_cmd="moused_start" | ||||
| pidprefix="/var/run/moused" | pidprefix="/var/run/moused" | ||||
| pidfile="${pidprefix}.pid" | pidfile="${pidprefix}.pid" | ||||
| pidarg= | pidarg= | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: nojail keyword | |||||
| # XXX: How does moused communiacte with the kernel? | |||||
| # XXX: Does the kernel prevent this communcation in jails? | |||||
| moused_svcj="NO" | |||||
| # Set the pid file and variable name. The second argument, if it exists, is | # Set the pid file and variable name. The second argument, if it exists, is | ||||
| # expected to be the mouse device. | # expected to be the mouse device. | ||||
| # | # | ||||
| if [ -n "$2" ]; then | if [ -n "$2" ]; then | ||||
| eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}} | eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}} | ||||
| rcvar="moused_${2}_enable" | rcvar="moused_${2}_enable" | ||||
| pidfile="${pidprefix}.$2.pid" | pidfile="${pidprefix}.$2.pid" | ||||
| pidarg="-I $pidfile" | pidarg="-I $pidfile" | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||