Reputation
1,078
Next privilege 2,000 Rep.
Edit questions and answers
Badges
3 14 26
Impact
~102k people reached

  • 0 posts edited
  • 0 helpful flags
  • 36 votes cast
Nov
24
comment Detect init system using the shell
@naxa - Short answer, no. Long answer, you can get pretty far with ps -p 1 -o command (prints the path to the current init). On Arch Linux and Fedora (IIRC), it's a symlink to the systemd binary (probably same on all systemd systems). On upstart, init --help will print usage information, and on my box, upstart is mentioned where it says who to email. On FreeBSD (sysV), this will return an error. There may be similar clues on other systems, but since asking this question, I've decided to just create them for all platforms and make separate packages for each one.
Aug
6
awarded  Nice Question
Jul
19
awarded  Popular Question
Jul
5
awarded  Popular Question
Jun
19
awarded  Yearling
May
5
awarded  Notable Question
May
3
awarded  Notable Question
May
2
awarded  Popular Question
Apr
15
awarded  Notable Question
Apr
8
awarded  Popular Question
Mar
25
asked How to switch xsessions?
Mar
25
comment How can I switch window managers in Gnome 3?
@ZanLynx - You can create a .desktop file for whatever you use. I use xmonad fine with GDM.
Jan
22
awarded  Nice Question
Dec
5
accepted View stdout/stderr of systemd service
Dec
3
asked Chain loading kernel without a boot loader
Nov
25
answered Partioning free space for manual install
Nov
25
comment Accidentally set /lib permissions to 644
+1 for reinstalling from scratch
Nov
25
comment Partioning free space for manual install
What will you use it for? For example, a server (small /home, big /srv) would be much different from a desktop (big /home).
Nov
19
awarded  Popular Question
Nov
14
comment View stdout/stderr of systemd service
@peterph - It was a problem with my service, which is why I wanted to look at the output. The problem is now solved though.