# Template: install.sh fills in @USER@, @DIR@ and @ARGS@ and writes /etc/systemd/system/dashboard.service. [Unit] Description=dashPi dashboard (3.5" screen + web pages) After=network-online.target Wants=network-online.target [Service] Type=simple User=@USER@ SupplementaryGroups=video input WorkingDirectory=@DIR@ ExecStart=/usr/bin/python3 @DIR@/dash.py @ARGS@ Restart=on-failure RestartSec=5 # Optional: another time zone than the machine's for the band imports #Environment=DASH_TZ=Europe/Berlin NoNewPrivileges=yes PrivateTmp=yes ProtectSystem=full [Install] WantedBy=multi-user.target