systemd Service Generator
Copy the file to /etc/systemd/system/, then systemctl daemon-reload and systemctl enable –now NAME. With a timer, enable the timer, not the service.
Create systemd unit files
The tool builds a ready-to-use .service file from your input – and, if you like, an additional .timer to start the service on a schedule (the modern alternative to cron).
- Type:
simplefor foreground programs,oneshotfor short tasks (typical with timers),forkingfor classic daemons. - Restart:
on-failurerestarts the service after a crash. - Timer:
OnCalendar=dailyor an expression like*-*-* 03:00:00for 3 a.m. daily.
Enable: copy the file to /etc/systemd/system/, then systemctl daemon-reload and systemctl enable --now myapp.service (or .timer).
