/etc/systemd/system下建立了一个service,并且enable了,但是关机/重启均不能运行
[Unit]
Description=Test
Before=reboot.target halt.target poweroff.target
[Service]
ExecStart=/usr/bin/bash /home/xxx/tmp/shutdown.sh
[Install]
WantedBy=reboot.target halt.target poweroff.target
这是什么原因呢?