Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/sbin/init: unrecognized option '--version'

If you get an error in some script or whatever like:

/sbin/init: unrecognized option '--version'

This is probably because:

  • /sbin/init is a symlink to /lib/systemd/systemd
  • systemd supports the --version flag, but not if it is called via a symlink ??

So, if possible, replace calls to /sbin/init with calls to systemd instead. Or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment