Skip to content

Commit

Permalink
stop systemd services when uninstalling
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 9, 2015
1 parent 09b5864 commit 815db2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions products/org.eclipse.packagedrone.server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ fi
<preremoveScriptlet>
<script><![CDATA[
if [ $1 -eq 0 ] ; then
systemctl --no-reload --user --global disable "${drone.app.name}.service" > /dev/null 2>&1 || :
systemctl --no-reload disable "${drone.app.name}.service" > /dev/null 2>&1 || :
systemctl stop "${drone.app.name}" > /dev/null 2>&1 || :
fi
]]>
</script>
Expand Down Expand Up @@ -570,7 +571,8 @@ fi
<preremoveScriptlet>
<script><![CDATA[
if [ $1 -eq 0 ] ; then
systemctl --no-reload --user --global disable "${drone.app.name}.service" > /dev/null 2>&1 || :
systemctl --no-reload disable "${drone.app.name}.service" > /dev/null 2>&1 || :
systemctl stop "${drone.app.name}" > /dev/null 2>&1 || :
fi
]]>
</script>
Expand Down

0 comments on commit 815db2a

Please sign in to comment.