git: 1f6a4e4fcd1d - main - sysutils/keyd: use daemon(8) to unbreak logging
Jan Beich
jbeich at FreeBSD.org
Mon Aug 2 06:56:19 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1f6a4e4fcd1d7d9a1b35ef66714d1269fb1c1a28
commit 1f6a4e4fcd1d7d9a1b35ef66714d1269fb1c1a28
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-08-02 06:55:11 +0000
Commit: Jan Beich <jbeich at 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"
More information about the dev-commits-ports-all
mailing list