LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-10-2015, 02:11 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Smile I never got to choose.... Debian 8.1 64-bit


So I decided to have a go at Debian (on a VM) everything went smoothly, pretty fun playing around with it and a nice change from Slackware.

I did notice one thing though, I never really got a choice on what startup to use, so I am assuming it is utilising systemd. I guess maybe there is no choice? Although I thought the devs would allow you to choose the classic startup or systemd after install... Or I am totally clueless and missed it somewhere? --Probably the latter though I checked all options and even tried expert install...

Last edited by Jeebizz; 06-10-2015 at 02:13 PM.
 
Old 06-10-2015, 02:24 PM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
I have never seen any system ever give a choice, either it was made with InitV or SystemD, though the skeletal structure of both systems will be in place on the filesystem, at least whenever I look at it. Though due to the complexity how how both system operate, I can imagine it being too problematic to try to release a choice between both variants. That alone could imaginably double the man hours of pre-release testing, simply that it would not be a good logistical choice.
 
Old 06-10-2015, 02:29 PM   #3
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Nope, no choice, you get what you get there. Lots of other choices, but not that one. Debian voted for systemd, and it's what comes with it. It's possible, if you have the knowledge, to remove systemd, but I'm not sure it's worth the trouble. It's not to me, but it's your computer. There have been many discussions of systemd, Debian, and Linux in general here, and Google will tell you how to get rid of it if you really want to.
 
Old 06-10-2015, 02:48 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
If you run these commands:
Code:
# apt-get install sysvinit
# update-grub
You will find entries in the "Advanced Options" section of the GRUB menu to boot the system using SysVinit rather than systemd.

This command will tell you which init system you are using:
Code:
cat /proc/1/comm
To switch to SysVinit permanently, use this command:
Code:
# apt-get install sysvinit-core systemd-shim systemd-sysv-
https://wiki.debian.org/FAQsFromDebi...9_on_Jessie.3F

Last edited by Head_on_a_Stick; 06-10-2015 at 02:52 PM. Reason: added "#" to SysVinit installation command
 
3 members found this post helpful.
Old 06-10-2015, 03:08 PM   #5
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Quote:
Originally Posted by Head_on_a_Stick View Post
If you run these commands:
This rides the fine line of two questions:

1) Can it be done?
2) Should it be done?

I just tend to be very weary of giving suggestions that could potentially be very hazardous should any reader happen to stumble upon this question while working on a business production server. If anything goes wrong and any form of tech support is ever needed, their reply would automatically be "Format and Reinstall".
 
Old 06-10-2015, 03:34 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by joec@home View Post
This rides the fine line of two questions:

1) Can it be done?
2) Should it be done?

I just tend to be very weary of giving suggestions that could potentially be very hazardous should any reader happen to stumble upon this question while working on a business production server. If anything goes wrong and any form of tech support is ever needed, their reply would automatically be "Format and Reinstall".
1) Yes, it is an option that has been provided by the Debian developers to allow users upgrading from Debian wheezy to carry on with SysVinit.
2) If the OP doesn't want to use systemd or wants to try SysVinit, yes.

The first two commands just add extra entries to the GRUB menu, nothing else.

The last command switches the system away from systemd but keeps systemd and all libraries on the machine so should maintain compatibility with all the software in the repositories.

I say again: this is an option provided *by the Debian developers* -- read the link I posted.

EDIT: Posted from my Debian sid box whilst running SysVinit
Code:
empty@Debian ~ % cat /proc/1/comm
init
 
2 members found this post helpful.
Old 06-10-2015, 04:01 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by Head_on_a_Stick View Post
If you run these commands:
Code:
# apt-get install sysvinit
# update-grub
You will find entries in the "Advanced Options" section of the GRUB menu to boot the system using SysVinit rather than systemd.

This command will tell you which init system you are using:
Code:
cat /proc/1/comm
To switch to SysVinit permanently, use this command:
Code:
# apt-get install sysvinit-core systemd-shim systemd-sysv-
https://wiki.debian.org/FAQsFromDebi...9_on_Jessie.3F
Thats perfect! Though still disappointing that I did not get any sort of prompt, but details details. I don't have too much experience with SysV, (BSD style only, from Slackware) but I really have no interest in systemd.

I found this:

Quote:
https://www.debian.org/releases/stab...mation.en.html
5.6. Upgrading installs the new default init system for Jessie

Jessie ships with systemd-sysv as default init system. This package is installed automatically on upgrades.

If you have a preference for another init such as sysvinit-core or upstart, it is recommended to set up APT pinning prior to the upgrade. This may also be required if you are upgrading LXC containers before the host. In this case, please refer to Section 5.8.1, “Upgrading LXC guests running on Wheezy hosts”.

As an example, to prevent systemd-sysv from being installed during the upgrade, you can create a file called /etc/apt/preferences.d/local-
But obviously I was doing a fresh install, so does not apply. Again, no biggie if I can do just a few simple commands and not have to do anything too major, its all good .

This will tide me over until Devuan comes out and then I can play with that as well .
 
Old 06-10-2015, 04:17 PM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Success! , Sorta


startup:
Click image for larger version

Name:	1.png
Views:	69
Size:	113.2 KB
ID:	18683


login:
Click image for larger version

Name:	2.png
Views:	54
Size:	83.6 KB
ID:	18684

However this kinda confused me:

Checking proc:
Click image for larger version

Name:	3.jpg
Views:	97
Size:	63.2 KB
ID:	18685

Its as if I can't verify if I really am running sysv, even though I chose it in grub. Oddly enough I also encountered the same error before using apt-get to install sysv base. Maybe Debian is just being weird because of Virtualbox? I dunno, I don't see why but I can't think of what I did wrong, though it 'seemed' to have worked, but can't really verify it.
 
Old 06-10-2015, 04:19 PM   #9
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
You have used:
Code:
cat /proc/l/comm
You should have used:
Code:
cat /proc/1/comm
It should be the number "one" rather than the letter "l"

EDIT: In a machine using systemd as PID1, this will be the output:
Code:
empty@Arch ~ % cat /proc/1/comm 
systemd
For SysVinit, it will say "init" (see my post above)

Last edited by Head_on_a_Stick; 06-10-2015 at 04:21 PM.
 
Old 06-10-2015, 04:24 PM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by Head_on_a_Stick View Post
You have used:
Code:
cat /proc/l/comm
You should have used:
Code:
cat /proc/1/comm
It should be the number "one" rather than the letter "l"

EDIT: In a machine using systemd as PID1, this will be the output:
Code:
empty@Arch ~  cat /proc/1/comm 
systemd
For SysVinit, it will say "init" (see my post above)
AAH, curse the font! LOL! 1 and l got me confused , derp!

--edit

Code:
vdeb@vdebian:~$ cat /proc/1/comm
init
vdeb@vdebian:~$
So I don't really see any noticeable difference in boot time, between sysV and systemd. To be fair it is a fresh install with no real changes... *shrug*

Last edited by Jeebizz; 06-10-2015 at 04:27 PM.
 
Old 06-10-2015, 04:42 PM   #11
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by Jeebizz View Post
So I don't really see any noticeable difference in boot time, between sysV and systemd.
+1
 
Old 06-10-2015, 06:17 PM   #12
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
I recently removed systemd and installed sysvinit for Debian jessie. You only really need to install sysvinit and it uses it. If you remove systemd it removes a lot of packages with it. I wouldn't suggest removing it unless you know how to install packages without a network.
 
Old 06-10-2015, 06:45 PM   #13
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Being that I have no real experience with Debian I think just being able to switch to sysV is sufficient, and since most packages now require systemd as a dependency rather than risk screwing things up, I'll just leave it installed, since it won't really hurt anything if its just there. If I want a pure Debian without systemd I can wait for Devuan .
 
Old 06-11-2015, 01:34 AM   #14
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
So I don't really see any noticeable difference in boot time, between sysV and systemd. To be fair it is a fresh install with no real changes... *shrug*
i
YOu will however notice the shutdown time happens in seconds.
 
Old 06-11-2015, 11:09 AM   #15
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Code:
# apt-get install sysvinit-core systemd-shim systemd-sysv-
Worked perfectly for me:

Code:
ade@Debian:~$ cat /proc/1/comm
init
Cheers Head_on_a_Stick, been wondering the best way to do this for a while.

Last edited by the trooper; 06-11-2015 at 11:10 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
32 or 64 bit Lunux to choose ? TigerLinux Linux - Newbie 10 12-29-2010 02:53 PM
[SOLVED] Cheapest 64-bit processor - help to choose igadoter Linux - Hardware 7 08-28-2010 11:43 AM
LXer: 32 bit vs 64 bit Linux - Which to Choose? LXer Syndicated Linux News 0 08-13-2010 03:50 AM
LXer: Running 32-bit Applications on 64-bit Debian GNU/Linux LXer Syndicated Linux News 2 01-06-2010 12:26 PM
How to choose a 64-bit system? JapanMtlExpat Linux - Hardware 1 11-29-2004 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration