First copy the files Place the .timer and .service file in the /etc/systemd/system/ folder. How to use To use, let's assume I want to restart nginx every night. Then I'd do: systemctl enable --now restart_nightly@nginx.timer