Difference between revisions of "SysV, SystemD and UpStArt"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 2: Line 2:
 
SysV is a framework for [[scheduling tasks]] to start at boot time. It is beeing successed by systemd and upstart. This affects how services are started and stopped. With systemd you start a service like
 
SysV is a framework for [[scheduling tasks]] to start at boot time. It is beeing successed by systemd and upstart. This affects how services are started and stopped. With systemd you start a service like
 
  /etc/init.d/[[ntp]] start
 
  /etc/init.d/[[ntp]] start
 +
With SystemD you do it with
 +
systemctl start ntp
 +
 +
{| class="wikitable sortable" border=1
 +
! what you want to do !! how you do it with SysV !! how you do it with SystemD
 +
|-
 +
| start service ''foo'' || /etc/init.d/''foo'' start || systemctl start ''foo''
 +
|-
 +
| stop service ''foo''  || /etc/init.d/''foo'' stop  || systemctl stop ''foo''
 +
|-
 +
|}

Revision as of 08:05, 21 January 2016

SysV, SystemD and UpStArt

SysV is a framework for scheduling tasks to start at boot time. It is beeing successed by systemd and upstart. This affects how services are started and stopped. With systemd you start a service like

/etc/init.d/ntp start

With SystemD you do it with

systemctl start ntp
what you want to do how you do it with SysV how you do it with SystemD
start service foo /etc/init.d/foo start systemctl start foo
stop service foo /etc/init.d/foo stop systemctl stop foo