Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275014

Re: differences between sysvinit and systemd; was: where is mail.log

From Michael Kjörling <c9bc136c6063@ewoof.net>
Newsgroups linux.debian.user
Subject Re: differences between sysvinit and systemd; was: where is mail.log
Date 2024-11-30 14:30 +0100
Message-ID <JOvHQ-cLTQ-3@gated-at.bofh.it> (permalink)
References (2 earlier) <JOfD3-czgf-15@gated-at.bofh.it> <JOgSt-cA0d-23@gated-at.bofh.it> <JOpj3-cH3B-1@gated-at.bofh.it> <JOuVr-cLnT-3@gated-at.bofh.it> <JOuVr-cLnT-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 30 Nov 2024 20:33 +0800, from bitfox@secubox.org (Bitfox):
> May I ask what's the main difference between systemd and sysv for init
> system?

I think it's fair to say that systemd does a great deal more, as well
as that it brings things into the init system which have traditionally
been done by separate pieces of software.

SysV init is primarily a way to manage automated start and stop of
services at runlevel changes, by executing a series of programs placed
in magic directories (/etc/rc?.d) with specific parameters; and does
very little else. Things like recovering from service failures,
dependency management, etc. are up to those scripts (or the system
administrator).

Whereas systemd aims to be more of a system _management_ tool;
bringing in system log storage, time synchronization, file system and
service dependency management, on-demand service startup, network
management, and a great deal more.

A lot of people have very strong opinions about this.

_From a user perspective_, there's actually not all that much
difference: to get to a usable, running system, both systemd and
sysvinit must accomplish roughly the same things and start the same
services; and to interrogate the state of the running system, the
administrator must do roughly the same things. The difference here is
in _how_ this is accomplished and exactly which software is used for
each part of it. Compatibility shims have also existed for a long
time, and nothing really prevents for example a distribution from
packaging /etc/init.d/* scripts which are wrappers around the
corresponding systemctl commands on a systemd system.

For example, whereas on a more traditional sysvinit system using
traditional text-based log files, you might use something like

# awk '{ if($5 ~ "^postfix[[]") { print } }' </var/log/messages

on a systemd system you'd use, to roughly the same effect

# journalctl --no-pager --all -u postfix

(where -u xx can alternatively be written --unit=xx)

and to restart a service, instead of SysV init's

# /etc/init.d/postfix restart

one might do

# systemctl restart postfix

-- 
Michael Kjörling
🔗 https://michael.kjorling.se

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 01:10 +0100
  Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 01:20 +0100
    Re: where is mail.log "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-11-29 21:20 +0100
      Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 21:30 +0100
        Re: where is mail.log gene heskett <gheskett@shentel.net> - 2024-11-29 22:30 +0100
        Re: where is mail.log Nicolas George <george@nsup.org> - 2024-11-30 14:40 +0100
          Re: where is mail.log "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-11-30 23:30 +0100
        Re: where is mail.log Max Nikulin <manikulin@gmail.com> - 2024-12-03 04:10 +0100
          Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-12-03 04:20 +0100
            Re: where is mail.log "Jonathan Dowland" <jmtd@debian.org> - 2024-12-03 10:30 +0100
      Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-29 21:50 +0100
      Re: where is mail.log pocket@homemail.com - 2024-11-29 22:40 +0100
        Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 07:40 +0100
          Re: where is mail.log Bitfox <bitfox@secubox.org> - 2024-11-30 13:40 +0100
            Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 14:00 +0100
              Re: where is mail.log Richard Owlett <rowlett@access.net> - 2024-11-30 15:10 +0100
            Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 14:30 +0100
            Re: differences between sysvinit and systemd; was: where is mail.log Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-11-30 14:30 +0100
              Re: differences between sysvinit and systemd; was: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-30 15:10 +0100
                Re: differences between sysvinit and systemd Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-11-30 16:50 +0100
            Re: where is mail.log Nicolas George <george@nsup.org> - 2024-11-30 14:50 +0100
          Re: where is mail.log pocket@homemail.com - 2024-11-30 13:40 +0100
            Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 18:00 +0100
              Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 18:40 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 19:00 +0100
                Re: where is mail.log pocket@homemail.com - 2024-11-30 19:20 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 19:30 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 19:30 +0100
                Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-30 19:40 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 20:00 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 20:20 +0100
                Re: where is mail.log and the changing Linux ecosystem George at Clug <Clug@goproject.info> - 2024-12-01 01:10 +0100
                Re: where is mail.log and the changing Linux ecosystem Greg Wooledge <greg@wooledge.org> - 2024-12-01 01:20 +0100
                Re: where is mail.log and the changing Linux ecosystem George at Clug <Clug@goproject.info> - 2024-12-01 01:30 +0100
                Re: where is mail.log and the changing Linux ecosystem <tomas@tuxteam.de> - 2024-12-01 07:20 +0100
                Re: where is mail.log Jeffrey Walton <noloader@gmail.com> - 2024-12-02 17:30 +0100
                Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 20:00 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 19:10 +0100
            Re: where is mail.log Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-12-02 13:10 +0100
  Re: where is mail.log Dan Ritter <dsr@randomstring.org> - 2024-11-29 01:40 +0100
    Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 03:10 +0100
      Re: where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 05:10 +0100
      Re: where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 11:40 +0100
        Re: where is mail.log George at Clug <Clug@goproject.info> - 2024-11-30 13:30 +0100
  Re: where is mail.log George at Clug <Clug@goproject.info> - 2024-11-29 03:50 +0100
  Re: where is mail.log Michael <ml@hemathor.de> - 2024-12-02 12:50 +0100
    Re: where is mail.log Nicolas George <george@nsup.org> - 2024-12-02 13:10 +0100
      Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-12-02 16:10 +0100
        Re: where is mail.log Michael <ml@hemathor.de> - 2024-12-03 11:20 +0100

csiph-web