We're a place where coders share, stay up-to-date and grow their careers.
One thing to note is you may want to add the absolute path to the curl command. I got some errors when first testing this out on an Ubuntu box. I needed to set ExecStart to ExecStart=/usr/bin/curl for the service to run properly.
curl
ExecStart=/usr/bin/curl
Thank you for catching this! I agree with you, and have edited the article accordingly.
One thing to note is you may want to add the absolute path to the
curl
command. I got some errors when first testing this out on an Ubuntu box. I needed to set ExecStart toExecStart=/usr/bin/curl
for the service to run properly.Thank you for catching this! I agree with you, and have edited the article accordingly.