I use Centos7, and I created a service:[Unit]Description=My Audit DaemonAfter=postgresql.service[Service]User=rootWorkingDirectory=/opt/MyAuditDaemonExecStart=/usr/bin/java -Xmx256m -jar MyAuditDaemon.jarTimeoutSec=30SuccessExitStatus=143Restart=alwaysRestartSec=3[Install]WantedBy=multi-user.targetI want to log if this service stops.I placed a ShutdownHook in the java program, so when I stop it with systemctl stop myauditdaemon.service , it writes into the syslog. This also works when I terminate it with SIGTERM.But when I use the shutdown, or reboot command, there is no message in the syslog. I also tried the ExecStop parameter in the service file:ExecStop=/usr/bin/logger -p local5.info -n localhost My Audit Service stopped.This works only too when I stop the service with systemctl, or SIGTERM. How should I log the shutdown of this daemon? 
How to log into syslog if a service is stopped with systemd
centos;systemd;services