# Written by the mesh (module power, novox/hq ADR 0211). Replaced on every push. # # Started at boot and left active; stopping it is the shutdown. Ordered after the network, so at # shutdown it stops, and runs every module's code, while the network is still up. [Unit] Description=Every module's code before shutdown (mesh power) Wants=network-online.target After=network-online.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/true ExecStop=/usr/local/lib/mesh-power/bin/power-moment before-shutdown TimeoutStopSec=120 [Install] WantedBy=multi-user.target