Date: Mon, 2 Aug 2021 06:56:19 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 1f6a4e4fcd1d - main - sysutils/keyd: use daemon(8) to unbreak logging Message-ID: <202108020656.1726uJxZ015449@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=1f6a4e4fcd1d7d9a1b35ef66714d1269fb1c1a28 commit 1f6a4e4fcd1d7d9a1b35ef66714d1269fb1c1a28 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2021-08-02 06:55:11 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2021-08-02 06:55:42 +0000 sysutils/keyd: use daemon(8) to unbreak logging $ 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 --- sysutils/keyd/files/keyd.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sysutils/keyd/files/keyd.in b/sysutils/keyd/files/keyd.in index 01a4cf94b9e8..32af464ca97e 100644 --- a/sysutils/keyd/files/keyd.in +++ b/sysutils/keyd/files/keyd.in @@ -18,7 +18,9 @@ load_rc_config "$name" : ${keyd_enable="NO"} -command="%%PREFIX%%/bin/${name}" -command_args="-d" +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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108020656.1726uJxZ015449>