Skip to main content

Timeline for Detect init system using the shell

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Oct 7, 2020 at 13:01 comment added user39248 Currently on my debian box, /sbin/init --version complais tyhat there is no --version option.
Sep 25, 2019 at 7:04 comment added Astrinus I'd also add busybox: if [ -h /sbin/init -a $(readlink /sbin/init | grep busybox | wc -l) -gt 0 ]; then echo yes; else echo no; fi
Apr 17, 2019 at 18:36 history edited Rui F Ribeiro CC BY-SA 4.0
deleted 37 characters in body
Aug 8, 2018 at 14:15 comment added Tony I'll add to this detecting launchd, the init system on macOS: [[ $(ps 1) =~ 'launchd' ]] && echo yes || echo no tested on a MacBookPro, macOS Sierra Version 10.12
Dec 13, 2017 at 15:23 comment added Robie Basak According to the systemd documentation (sd_booted(3)), the correct way to check for systemd is to check if the directory /run/systemd/system exists.
S May 12, 2016 at 16:16 history suggested Suuuehgi CC BY-SA 3.0
Arch ref-link
May 12, 2016 at 15:45 review Suggested edits
S May 12, 2016 at 16:16
S May 12, 2016 at 15:42 history edited Jeff Schaller CC BY-SA 3.0
Ubuntu switched to systemd in 14.10
S May 12, 2016 at 15:42 history suggested Suuuehgi CC BY-SA 3.0
Ubuntu switched to systemd in 14.10
May 12, 2016 at 15:35 review Suggested edits
S May 12, 2016 at 15:42
Oct 25, 2014 at 2:03 history edited TvE CC BY-SA 3.0
added info for CentOS6.4
Oct 24, 2014 at 22:39 review Late answers
Oct 24, 2014 at 23:07
Oct 24, 2014 at 22:27 review First posts
Oct 24, 2014 at 22:46
Oct 24, 2014 at 22:23 history answered TvE CC BY-SA 3.0