Skip to content

Commit

Permalink
sysctrl daemon-reload on install & uninstall
Browse files Browse the repository at this point in the history
better output to user on install/uninstall
  • Loading branch information
Jeffrey Schmidt committed Jul 19, 2016
1 parent 33e6338 commit 16af16a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@
<postinstallScriptlet>
<script>
/sbin/chkconfig --add statspoller
printf "Post-installation notice: Please remember to start/restart StatsPoller"
systemctl daemon-reload > /dev/null 2>&amp;1
printf "Post-installation notice: Please remember to start/restart StatsPoller\n"
</script>
</postinstallScriptlet>

Expand All @@ -287,7 +288,11 @@
</preremoveScriptlet>

<postremoveScriptlet>
<script>[ $1 = 0 ] &amp;&amp; rm -R /opt/StatsPoller</script>
<script>
[ $1 = 0 ] &amp;&amp; rm -R /opt/StatsPoller
systemctl daemon-reload > /dev/null 2>&amp;1
printf "StatsPoller has been uninstalled\n"
</script>
</postremoveScriptlet>

</configuration>
Expand Down

0 comments on commit 16af16a

Please sign in to comment.