News for hackers. Stuff that matters.
Re:Systemd.timer, an Alternative to Cron by candiddevmike on Thursday December 08, 2022 @04:14PM (#33913514)
I personally find journalctl -fu $service very cathartic, because I'm almost always typing this command when $service isn't working.
Re:Systemd.timer, an Alternative to Cron by throwaway894345 on Thursday December 08, 2022 @04:29PM (#33913725)
I really need to alias `journalctl -fu` to something because it's always so tedious to type all that out over and over when I'm trying to debug something. Also, is there any autocomplete for systemd unit names? Typing `journalctl -fu amazon-cloudwatch-agent` over and over and over is so much more tedious--ideally it would be something closer to `jctl amaz<tab>`.
Re:Systemd.timer, an Alternative to Cron by dinosaurdynasty on Thursday December 08, 2022 @04:41PM (#33913920)
There is autocompletion. It works by default on Pop OS and Debian. (You may need to install bash-completion and/or dbus if your install is very minimal.)
Re:Systemd.timer, an Alternative to Cron by kaba0 on Thursday December 08, 2022 @04:36PM (#33913842)
I do get autocomplete for even that with bash (on nixos). Tried to have a look at my config, but I forgot what enables that, but it is a game changer.