Linked Questions

107 votes
5 answers
128k views

Is there a simple way to find out which initsystem is being used e.g by a recent Debian wheezy or Fedora system? I'm aware that Fedora 21 uses systemd initsystem but that is because I read that and ...
Valentin Bajrami's user avatar
64 votes
1 answer
103k views

I am defining common bash files which I want to use across different distributions. I need a way to check if system is using systemd or sysvinit (/etc/init.d/). I need this so I run appropriate ...
ek9's user avatar
  • 2,965
2 votes
1 answer
2k views

I have a Python service in systemd. I'd like to have it use the Python syslog module for logging if it's running in systemd vs. otherwise. Is there a reliable way to determine if I'm running in ...
Naftuli Kay's user avatar
  • 41.6k
1 vote
0 answers
542 views

Is there a way to determine which init system is being used in Linux? (such as sysvinit, upstart, systemd, etc.) I don't care if it can be programmatically determined, I just want to know how I can ...
ohmu's user avatar
  • 1,752
76 votes
6 answers
6k views

What resources exist for portable shell programming? The ultimate answer is to test on all targeted platforms, but that's rarely practical. The POSIX / Single UNIX specification is a start, but it ...
Gilles 'SO- stop being evil''s user avatar
24 votes
5 answers
4k views

We have a shell script that -- for various reasons -- wraps a vendor's application. We have system administrators and application owners who have mixed levels of familiarity with systemd. As a result, ...
Jeff Schaller's user avatar
  • 68.9k
2 votes
2 answers
5k views

I noticed in somewhere that most of the Linux distro are based on Systemd instead of SysV init. So I just want to know without installing and booting. Is there any possible way to find distro based ...
Abdulvakaf K's user avatar
5 votes
1 answer
2k views

Reading What do the brackets around processes mean? I understand that the executable name is printed. Linux ps man page: Sometimes the process args will be unavailable; when this happens, ps will ...
n611x007's user avatar
  • 1,047
0 votes
1 answer
3k views

I want to reformulate a very interesting Q by Thelostcause ("Splash in PID =1"): How does and how can "/sbin/init splash" show up in the ps command? I also ask: aren't we (we who are running a "...
user avatar
1 vote
1 answer
1k views

On my debian 10 server pidof systemd gives no result, although there are pids: # pgrep systemd -la 1 /sbin/init 256 /lib/systemd/systemd-journald 275 /lib/systemd/systemd-udevd 282 /lib/systemd/...
rubo77's user avatar
  • 30.6k
2 votes
1 answer
2k views

We use card with embedded Linux: 4.1.22-ltsi , "Debian GNU/Linux 9 (stretch)". On Uart console, after boot process, it automatically does login and shows prompt root@linaro-developer: root@...
Yakov's user avatar
  • 121
0 votes
1 answer
808 views

I am attempting to write a cross-platform sysvinit service that works on as many sysvinit systems as possible. Things I need: The process needs to daemonize (it does not automatically daemonize ...
horseyguy's user avatar
  • 133
1 vote
2 answers
809 views

My application should run on systems which run on systemd and older platforms where systemd is not available. So I am registering my service into run level using both chkconfig and systemctl enable. ...
nithinj's user avatar
  • 180
1 vote
1 answer
396 views

friends! I need a mechanism to verify if the linux virtual private server is utilizing systemctl or service. The systemd application is installed on all of them. Current Code. if pgrep systemd-journal;...
wikob41409's user avatar
1 vote
0 answers
104 views

This Arch wiki page says: If you are using a systemd based initrd, you must pass: rd.luks.options=discard How do I query the initrd mini-shell to find out if I am running a systemd-based initrd? ...
Tom Hale's user avatar
  • 33.4k