17 lines
337 B
SYSTEMD
17 lines
337 B
SYSTEMD
|
# PiPower
|
||
|
# Copyright 2017 (c) Mark van Renswoude
|
||
|
#
|
||
|
# Yet another power supply for the Raspberry Pi.
|
||
|
# Designed to run on an ATTiny85 with a self-locking button.
|
||
|
|
||
|
[Unit]
|
||
|
Description=PiPower
|
||
|
After=multi-user.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
ExecStart=/usr/bin/python /home/pi/pipower.py
|
||
|
Restart=on-abort
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|