case "$*" in
0)
# We're uninstalling.
/etc/init.d/datadog-agent stop
;;
1)
# We're upgrading. Do nothing.
*)
esac
exit 0