package/mender: fix sysv startup script
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Fri, 15 Feb 2019 21:44:10 +0000 (22:44 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Feb 2019 22:00:12 +0000 (23:00 +0100)
commit63739c5c25805816a20e7073e837e18854e83ada
tree02ecbd68a9aceb3478f2023a138e628b76b1a270
parentdd97b055b11b8708438974555d1746a18924ceba
package/mender: fix sysv startup script

Mender is a service explicitly written for systemd and so it doesn't
fork on background, doesn't redirect outputs and doesn't create a pid
file by itself.
To make the service running correctly is therefore necessary to use the
-m switch of start-stop-daemon to create the pid file and -b option to
send the process to background.
Logging is preserved because the service will log anyway on syslog.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mender/S42mender