Skip to content

Conversation

@ecxod
Copy link

@ecxod ecxod commented Apr 13, 2025

The existence of /etc/systemd does not mean that the command systemctl is working. Due to the aggressive implementation of systemd some package patch and create /etc/systemd without checking what init system is used in that system. So it is possible that /etc/systemd exists but systemd is not the init system process one.

  • Replaced function has_init_system with detect_init_system. This function will return one of the following names of the init system: init, upstart, openrc, runit, s6, launchd, sysvinit, busybox, finit, smf, initng, sinit, systemd
  • New version of service_command_warning that uses detect_init_system

- Replaced function has_init_system with detect_init_system. This function will return one of the following names of the init system:  init, upstart, openrc, runit, s6, launchd, sysvinit, busybox, finit, smf, initng, sinit, systemd 
- New version of service_command_warning that uses detect_init_system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant