[Unit] Description=updates /etc/hosts with my custom hosts Requires=network-connected.target After=multi-user.target network-connected.target [Service] Type=simple #ExecStartPre=/bin/sleep 45 ExecStart=sudo /usr/local/bin/update_hosts User=root