summaryrefslogtreecommitdiff
path: root/pndpowerd.service
blob: cd78c9d905d002d2ce1bea8ad046ef671ddd5870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Pandora power manager

[Service]
Type=simple
ExecStart=/usr/local/sbin/pndpowerd
Restart=always

# For safety, disable charging when pndpowerd shuts off.
ExecStopPost=/bin/sh -c '/bin/echo 0 >/sys/class/power_supply/twl4030_ac/enable'

# Security options
PrivateNetwork=yes
InaccessibleDirectories=/boot /dev /home -/lost+found /media /mnt /opt -/root /sbin /srv /tmp /var
ReadOnlyDirectories=/bin /etc /lib /proc /run /usr
ReadWriteDirectories=/sys
CapabilityBoundingSet=

[Install]
WantedBy=default.target