my-appdaily, hourly, or Mon *-*-* 10:00:00)my-appdaily, hourly, or Mon *-*-* 10:00:00)⚠️ DISCLAIMER: Tools are provided "AS IS" for educational purposes only.
Review all commands before executing. By using this site you agree to our Terms of Service.
Pick a template (web app, background worker, Gunicorn, Docker container, timer, database) or start blank, fill in the command and user, and the unit file updates as you type. Download it, drop it into /etc/systemd/system/ and enable it.
Save the unit as /etc/systemd/system/myapp.service, then run sudo systemctl daemon-reload and sudo systemctl enable --now myapp. Check it with systemctl status myapp and journalctl -u myapp -f.
Add Restart=on-failure and RestartSec=5 to the [Service] section. If it restarts too often, systemd stops trying (by default after 5 starts in 10 seconds); tune StartLimitBurst and StartLimitIntervalSec in [Unit].
Create backup.service with Type=oneshot and a matching backup.timer with OnCalendar=*-*-* 02:00:00 and Persistent=true, then sudo systemctl enable --now backup.timer. systemctl list-timers shows the next run. Unlike cron, missed runs catch up and output lands in the journal.
systemd couldn’t execute the command: the path in ExecStart isn’t absolute or doesn’t exist, the file isn’t executable, or a script has no shebang line. On RHEL-based systems, SELinux can block binaries in home directories too.
Rarely. Set User= and Group= to a dedicated account, and add hardening such as NoNewPrivileges=true, ProtectSystem=full and PrivateTmp=true. systemd-analyze security myapp scores how exposed a service is.
Related tools: Crontab Generator · User & sudo Builder · Error Message Decoder · All tools A–Z
Most tools run entirely in your browser. Tools marked 📡 contact outside services, as listed in the Privacy Policy. Review commands before you run them; see the Terms.