diff options
-rw-r--r-- | meta-tpm/recipes-tpm/trousers/files/trousers.init.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh b/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh index 0ecf7cc..d0d6cb3 100644 --- a/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh +++ b/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh | |||
@@ -33,10 +33,12 @@ case "${1}" in | |||
33 | exit 0 | 33 | exit 0 |
34 | fi | 34 | fi |
35 | 35 | ||
36 | start-stop-daemon --start --quiet --oknodo --pidfile /var/run/${NAME}.pid --user ${USER} --chuid ${USER} --exec ${DAEMON} -- ${DAEMON_OPTS} | 36 | start-stop-daemon --start --quiet --oknodo \ |
37 | --pidfile /var/run/${NAME}.pid --make-pidfile --background \ | ||
38 | --user ${USER} --chuid ${USER} \ | ||
39 | --exec ${DAEMON} -- ${DAEMON_OPTS} --foreground | ||
37 | RETVAL="$?" | 40 | RETVAL="$?" |
38 | echo "$NAME." | 41 | echo "$NAME." |
39 | [ "$RETVAL" = 0 ] && pidof $DAEMON > /var/run/${NAME}.pid | ||
40 | exit $RETVAL | 42 | exit $RETVAL |
41 | ;; | 43 | ;; |
42 | 44 | ||