1 2 3 4 5 6
[Service] ExecStart=/usr/bin/sh -c '/usr/bin/udevadm settle; /usr/share/power.sh 1' ExecStop=/usr/share/power.sh 0 RemainAfterExit=yes [Install] WantedBy=multi-user.target