Commit ac6f9ca9 authored by Juergen Neumann's avatar Juergen Neumann

Merge branch 'preinst' into 'master'

Proposal for #14 to make detection of process status work reliably

See merge request dmx-platform/dmx-build-deb!3
parents 4b189c0c 82764f07
......@@ -30,7 +30,10 @@ if [ ! -z "${PREVIOUSVERSION}" ]; then
echo "Found previous db-version ${PREVIOUSVERSION}"
fi
if [ "$(systemctl is-active dmx.service)" ]; then
# check if dmx is already running
systemctl is-active --quiet dmx.service
if [ $? -eq 0 ]; then
deb-systemd-invoke stop dmx
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment