0% found this document useful (0 votes)
162 views1 page

Systemd Vs SysVinit

This document compares commands for managing services and runlevels between Systemd and SysVinit. It shows that Systemd uses the systemctl command for starting, stopping, restarting, reloading, checking status of services, and enabling or disabling services at startup. Systemd uses target units like multi-user.target instead of runlevels. It also introduces some new Systemd-specific commands for tasks like checking boot time, getting logs, and viewing host/time information.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views1 page

Systemd Vs SysVinit

This document compares commands for managing services and runlevels between Systemd and SysVinit. It shows that Systemd uses the systemctl command for starting, stopping, restarting, reloading, checking status of services, and enabling or disabling services at startup. Systemd uses target units like multi-user.target instead of runlevels. It also introduces some new Systemd-specific commands for tasks like checking boot time, getting logs, and viewing host/time information.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Systemd SysVinit

VS

Service Related Commands


Comments

Systemd

SysVinit

Start a service
Stop a service
Restart a service
Reload a service
Service status
Restart a service if already running
Enable service at startup
Disable service at startup
Check if a service is enabled at startup
Create a new service file or modify configuration

service dummy start


service dummy stop
service dummy restart
service dummy reload
service dummy status
service dummy condrestart
chkconfig dummy on
chkconfig dummy off
chkconfig dummy
chkconfig dummy --add

systemctl start dummy.service


systemctl stop dummy.service
systemctl restart dummy.service
systemctl reload dummy.service
systemctl status dummy.service
systemctl condrestart dummy.service
systemctl enable dummy.service
systemctl disable dummy.service
systemctl is-enabled dummy.service
systemctl daemon-reload

Note : New version of systemd support systemctl start dummy format.

Runlevels

Comments

Systemd

SysVinit

System halt
Single user mode
Multi user
Multi user with Network
Experimental
Multi user, with network, graphical mode
Reboot
Emergency Shell
Change to multi user runlevel/target

0
1, s, single
2
3
4
5
6
emergency
telinit 3

Set multi-user target on next boot

sed s/^id:.*:initdefault:/
id:3:initdefault:/

Check current runlevel


Change default runlevel

runlevel
sed s/^id:.*:initdefault:/
id:3:initdefault:/

runlevel0.target, poweroff.target
runlevel1.target, rescue.target
runlevel2.target, multi-user.target
runlevel3.target, multi-user.target
runlevel4.target, multi-user.target
runlevel5.target, graphical.target
runlevel6.target, reboot.target
emergency.target
systemctl isolate multi-user.target
(OR systemctl isolate runlevel3.
target)
ln -sf /lib/systemd/system/multiuser.target /etc/systemd/system/
default.target
systemctl get-default
systemctl set-default multi-user.target

Miscellaneous Commands
Comments
System halt
Power off the system
Restart the system
Suspend the system
Hibernate
Follow the system log file

Systemd

SysVinit
halt
poweroff
reboot
pm-suspend
pm-hibernate
tail -f /var/log/messages
or tail -f /var/log/syslog

systemctl halt
systemctl poweroff
systemctl reboot
systemctl suspend
systemctl hibernate
journalctl -f

Systemd New Commands


Comments
Execute a systemd command on remote host
Check boot time
Kill all processes related to a service
Get logs for events for today
Hostname and other host related information
Date and time of system with timezone and other information

Systemd
systemctl dummy.service start -H user@host
systemd-analyze or systemd-analyze time
systemctl kill dummy
journalctl --since=today
hostnamectl
timedatectl

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy