I have next record in crontab -e, running with user root.
@reboot /usr/bin/curl --silent --insecure -v -X GET https://<myserver_with_hook>?key=9d722304320de0b074d8da74bf680874&mes='nik-pc was rebooted or started!' But it not work!
p.s. if I run the command in the terminal - everything is fine. The goal is to cause a hook when you turn off / on / restart the PC.
systemdbased distribution,crondwould be up and running before the network is available and yourcurlcommand would have failed.