#! /bin/sh
set -e

#DEBHELPER#

restart_daemon()
{
	# Tell any running Zeitgeist daemon to stop gracefully - they'll be
	# restarted through D-Bus activation the next time they are needed.
	deb-systemd-invoke --user stop zeitgeist.service || true
}

if [ "$1" = configure ]; then
	restart_daemon
fi
