mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
$ keyd -d Daemonizing. Log output will be stored in /var/log/keyd.log $ cat /var/log/keyd.log cat: /var/log/keyd.log: No such file or directory
26 lines
483 B
Bash
26 lines
483 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: keyd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable this service:
|
|
#
|
|
# keyd_enable (bool): Set it to YES to run keyd on startup.
|
|
# Default: NO
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="keyd"
|
|
rcvar="${name}_enable"
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${keyd_enable="NO"}
|
|
|
|
command="/usr/sbin/daemon"
|
|
procname="%%PREFIX%%/bin/${name}"
|
|
pidfile="/var/run/${name}.pid"
|
|
command_args="-s err -T ${name} -p ${pidfile} ${procname}"
|
|
|
|
run_rc_command "$1"
|