Andrei Borzenkov wrote:
On 07.05.2023 18:58, Per Jessen wrote:
Side question - how do I make a user timer run when the user is not logged in?
If you enable lingering for a user, systemd user instance is started on boot (instead of first time user logs in). You will need configure your unit to be auto-started.
Note that it will start everything. There is no way to start one single unit. I am not sure if it is possible to distinguish between start due to lingering or start due to use logon. It depends on what is started by various desktop environments.
I think that is all okay - I am only looking to emulate the crontab behaviour as closely as possible. For the user, there are two key things - running a job regularly (most often daily) and on reboot. (the @reboot crontab entry).
loginctl enable-linger
ah, thanks! that was going to be my next question :-) -- Per Jessen, Zürich (17.0°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes