Systemd
Published on 7 March 2023
Always create user systemd services under /home/ajitid/.config/systemd/user.
Useful commands:
- After attaching a script to systemd using
systemctl --user enable some.service --now, and then making changes in that.servicefile, you’d need to runsystemctl --user daemon-reloadbefore doingsystemctl --user restart some.service. Systemctl already tells you this. systemctl --user status telltailto observe current statusjournalctl --user -u some.service -bto see some.service’s log- piping it to a pager,
nvim.appimage -or totail -n10is a good idea
- piping it to a pager,