[Bug 283735] sysutils/swtpm: Start as daemon when using configs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Dec 2024 01:37:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283735 Bug ID: 283735 Summary: sysutils/swtpm: Start as daemon when using configs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: scf@FreeBSD.org CC: meka@tilda.center Flags: maintainer-feedback?(meka@tilda.center) CC: meka@tilda.center Created attachment 256285 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256285&action=edit Fix swtpm rc script When using swtpm configs in /etc/rc.conf, the default options, which includes --daemon, are replaced with what is provided. This causes the swtpm rc script to not return upon starting it. For example, having this in /etc/rc.conf and running service swtpm start will start swtpm, the service command will not return: swtpm_enable="YES" swtpm_configs="test" swtpm_test="--tpm2 --tpmstate backend-uri=file:///var/db/swtpm/test.state --server type=unixio,path=/var/run/swtpm/test.socket --flags not-need-init" Moving --daemon to start_instance() fixes it. -- You are receiving this mail because: You are the assignee for the bug.