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.service
file, you’d need to runsystemctl --user daemon-reload
before doingsystemctl --user restart some.service
. Systemctl already tells you this. systemctl --user status telltail
to observe current statusjournalctl --user -u some.service -b
to see some.service’s log- piping it to a pager,
nvim.appimage -
or totail -n10
is a good idea
- piping it to a pager,