Skip to content

Instantly share code, notes, and snippets.

View omargtdev's full-sized avatar
👁️
An awesome developer

Omar Gutierrez Tafur omargtdev

👁️
An awesome developer
View GitHub Profile
@oprypin
oprypin / instructions.md
Last active June 19, 2024 08:16
systemd user unit + timer example

Save these files as ~/.config/systemd/user/some-service-name.*

Run this now and after any modifications: systemctl --user daemon-reload

Try out the service (oneshot): systemctl --user start some-service-name

Check logs if something is wrong: journalctl -u --user-unit some-service-name

Start the timer after this user logs in: systemctl --user enable --now some-service-name.timer