Setting Up Systemd Timer Files To Initiate Shell Scripts in Linux

3 years ago
44

In this video we will go over creating some basic systemd timers to run shell scripts.

To get example files for this video, you can find the code on my github:
https://github.com/jdfthetech/PenguinPropaganda_SystemdTimers

An excellent overview of the differences between oneshot and simple services:
https://trstringer.com/simple-vs-oneshot-systemd-service/

The archwiki on systemd timers:
https://wiki.archlinux.org/index.php/Systemd/Timers

The Debian manpage on systemd:
https://manpages.debian.org/buster/systemd/systemd.service.5.en.html

Some Systemctl commands:

systemctl start .service or .timer file will turn your item on.

systemctl stop .service or .timer file will turn your item off.

systemctl enable .service or .timer file will set a symlink to run the service permanently.

systemctl disable .service or .timer file will remove the symlink for the service.

systemctl status .service or .timer file will give you detailed status information.

systemctl list-timers will give you a list of all of the system timers running.

Video Notes: I'm working on making video quality a bit better this go around so I'm using some different sound and video settings. This video took quite some time to boil the subject down to the basics. Feel free to let me know if I missed something in the comments.

Loading comments...