tpm2-abrmd: S80tpm2-abrmd: create pid file at startup
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 15 Jan 2019 10:15:22 +0000 (11:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 16 Jan 2019 13:25:17 +0000 (14:25 +0100)
The start-stop-daemon invocation to start abrmd was missing the -m (make
pidfile) option, causing stop to fail.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tpm2-abrmd/S80tpm2-abrmd

index cfa9d44771c5562a4cf9249890320459e03b259a..6a0bef0a315a31fb76137b10db22fb0e64cb3727 100755 (executable)
@@ -28,7 +28,7 @@ start() {
        printf "Starting tpm2-abrmd: "
        check_device
        rm_stale_pidfile /var/run/tpm2-abrmd.pid /usr/sbin/tpm2-abrmd
-       start-stop-daemon -S -q -o -b -p /var/run/tpm2-abrmd.pid -c tss:tss -x /usr/sbin/tpm2-abrmd -- ${DAEMON_OPTS} || {
+       start-stop-daemon -S -q -o -b -m -p /var/run/tpm2-abrmd.pid -c tss:tss -x /usr/sbin/tpm2-abrmd -- ${DAEMON_OPTS} || {
                echo "FAIL"
                exit 1
        }