1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27[Unit]
Description=garagemon
After=multi-user.target
[Service]
Type=simple
# Needed if running as non-root.
# ExecStartPre=/home/dsymonds/src/garagemon/led-setup.sh
# This configuration works with the 3 Channel Relay Module Shield Smart Home for Raspberry Pi
# using channel 1 for the action with NO (Normally Open) wiring, on a Pi Zero W.
#
# https://www.waveshare.com/wiki/RPi_Relay_Board
ExecStart=/home/dsymonds/src/garagemon/garagemon \
-http=:80 \
-net_interface=tailscale0 \
-led_path=/sys/class/leds/led0 \
-action_pin=26 \
-action_active_low
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target