You should read my blog article about using PHP to create a stand alone program. However, to setup a systemd service you can really use any program that runs in linux. I'm just a PHP programmer and so use PHP as my stand alone program!
2019-2025 code & content: Zack von Menchhofen (Use of code can be licensed under a Creative Commons Attribution-NonCommercial 4.0 International License)