git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

cce-power-apply.service (672B)

 1 [Unit]
 2 Description=Apply the cce Power page's plan for the current power source
 3 Documentation=file:/etc/cce/power.kdl
 4 # Started by udev (udev/90-cce-power-apply.rules) when the Mains supply is
 5 # added at boot or flips online/offline, and re-run by the Power page's
 6 # helper on each change — so it needs no `systemctl enable` to do its job.
 7 # The [Install] below is what classifies it as a root-owned unit for
 8 # `ccebuild install-system`; enabling it merely adds a plain boot-time run.
 9 # Nothing planned yet means nothing to do.
10 ConditionPathExists=/etc/cce/power.kdl
11 
12 [Service]
13 Type=oneshot
14 ExecStart=/usr/bin/cce-power-apply apply
15 
16 [Install]
17 WantedBy=multi-user.target