I'm setting up my Linux box (that is connected to a UPS) to gracefully shutdown my pfsense router prior to shutting down.  I'm running Ubuntu 16.04, and using systemd to accomplish this.  I have the systemd service configured, and it works. However, it's initiating the script on shutdown AND on reboot.  This is no good since anytime I reboot my linux box, I'll be shutting down my router.  How can I change my systemd service so that it only activates during shutdown?My setup is as follows:[Unit]Description=PFSense Shutdown scriptAfter=poweroff.target[Service]Type=oneshotExecStart=/bin/trueExecStop=/path/to/script/pfsenseshutdown.shRemainAfterExit=yes[Install]WantedBy=multi-user.targetAnd, for reference, the pfsenseshutdown.sh script is fairly simple:#!/bin/bashssh user@x.x.x.x -i sudo /etc/rc.haltAny help would be greatly appreciated.
Initiate bash script on shutdown, but not on reboot
systemd;shutdown