[Unit] Description=P1_updRRD #https://www.shubhamdipt.com/blog/how-to-create-a-systemd-service-in-linux/ Wants=network-online.target After=network-online.target [Service] User=root Type=simple WorkingDirectory=/var/www/html/rrdpower/ ExecStart=/usr/bin/python3 P1_updRRD.py # optional items below Restart=always RestartSec=3 [Install] WantedBy=multi-user.target