История изменений
Исправление anonymous00, (текущая версия) :
Я бы написал просто unit, но вот не могу найти ни одного примера или документации о том как детектить systemd
man sd_booted
sd_booted - Test whether the system is running the systemd init system
Internally, this function checks whether the directory /run/systemd/system/ exists. A simple check like this can also be implemented trivially in shell or any other language.
Исходная версия anonymous00, :
Я бы написал просто unit, но вот не могу найти ни одного примера или документации о том как детектить systemd
man sd_booted
Internally, this function checks whether the directory /run/systemd/system/ exists. A simple check like this can also be implemented trivially in shell or any other language.