[Unit] Description=Led Control service Wants=network-online.target After=network.target network-online.target [Service] Type=simple User=root #ExecStartPre=/bin/sleep 30 ExecStart=/usr/bin/python3 /usr/bin/lcd_control.py [Install] WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target