[Unit]
Description=Bottled LED Matrix Render Service
After=syslog.target
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/var/led
ExecStart=/usr/bin/python3 /var/led/led.py
Restart=on-abort
RestartSec=2
[Install]
WantedBy=multi-user.target
- Put file into
/lib/systemd/systemwith name${SERVICE}.service systemctl enable ${SERVICE}.servicesystemctl start ${SERVICE}.service