Skip to content

Commit ecb55e1

Browse files
wigyoriaparcar
authored andcommitted
pdudaemon: add config for labgrid-wigyori
The pdudaemon here hosts a ClusterHAT which is an RPi hat for triggering 4 microUSB ports. Managing the ports is done via the "clusterctrl" tool which pokes the GPIO expander on the hat via i2c. Due to this, the pdudaemon service file is also extended to give i2c group access to the pdudaemon process. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
1 parent 66c2f9e commit ecb55e1

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"daemon": {
3+
"hostname": "localhost",
4+
"port": 16421,
5+
"logging_level": "DEBUG",
6+
"listener": "http"
7+
},
8+
"pdus": {
9+
"clusterhat": {
10+
"driver": "localcmdline",
11+
"cmd_on": "/usr/sbin/clusterctrl on p%s",
12+
"cmd_off": "/usr/sbin/clusterctrl off p%s"
13+
}
14+
}
15+
}

ansible/files/exporter/pdudaemon.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DynamicUser=yes
88
StateDirectory=pdudaemon
99
ProtectHome=true
1010
Restart=on-abnormal
11+
SupplementaryGroups=i2c
1112

1213
[Install]
1314
WantedBy=multi-user.target

0 commit comments

Comments
 (0)