Per Jessen wrote:
Carlos E. R. wrote:
On 20/02/2020 08.21, Per Jessen wrote:
Carlos E. R. wrote:
On 19/02/2020 21.49, Dave Howorth wrote:
Then cron (@reboot) is too late. /etc/init.d/boot.local exists for those purposes.
That's a sysVinit feature (and maybe hangover?) not a systemd one. So I'd much rather use the systemd equivalent, but as already stated I find the man page impenetrable.
WAS an init.d feature, which has been respected and documented. I do not know of any pure systemd way. So use the provided hook till the time you find the native systemd way if it exists.
You just create a service unit.
I don't think it is possible that early.
It is. Something has to be the first. My comments in []:
Sorry, I forgot to add the service unit: # systemctl cat carlos.service # /etc/systemd/system/carlos.service [Unit] Description=blah Requires=local-fs.target After=local-fs.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/logger -i blahblah [Install] WantedBy=multi-user.target -- Per Jessen, Zürich (8.0°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org