summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/hotswap-power-cycle.service
blob: f9f03e7c379a0d477a9895271478ee9b04081df9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Power Cycle by Hotswap Controller

[Service]
Environment= PSU_HARDRESET_DELAY=1
EnvironmentFile=-/run/psu_timedelay
ExecStartPre=sleep $PSU_HARDRESET_DELAY
ExecStart=gpioset 2 30=1
Restart=no
Type=oneshot
RemainAfterExit=true
StandardOutput=syslog

[Install]
WantedBy=gbmc-psu-hardreset.target