3 ms·
You wouldn't have to write service/unit files for one off commands. The release notes mention that you can use 'systemd-run' to start these[1]. [1] - https://
by eeperson 10y ago
You wouldn't have to write service/unit files for one off commands. The release notes mention that you can use 'systemd-run' to start these[1].
[1] - https://github.com/systemd/systemd/blob/master/NEWS#L29 https://github.com/systemd/systemd/blob/master/NEWS#L29
- 0x0 10y agoLooks like that's not enough, you also need to set some sort of "lingering" option or the last logout will kill everything despite having used systemd-run? Sounds like a lot of pitfalls with these new defaults. Wonder how many background tasks will be ruined before somebody patches screen to automatically issue all these new systemd commands.
- eeperson 10y agoI don't think the 'lingering' option is necessary. That controls the default behavior for processes. Systemd-run basically makes a one off user level service.
- eeperson 10y agoLooks like I was wrong. You do have to enable lingering[1]. [1] - https://wiki.archlinux.org/index.php/Systemd/User#Automatic_start-up_of_systemd_user_instances https://wiki.archlinux.org/index.php/Systemd/User#Automatic_...
- busterarm 10y agoWow, talk about insane...