Skip to content

Instantly share code, notes, and snippets.

@ytensor42
Last active September 14, 2018 06:53
Show Gist options
  • Select an option

  • Save ytensor42/835894febfb855ee9e02d23c5f35858e to your computer and use it in GitHub Desktop.

Select an option

Save ytensor42/835894febfb855ee9e02d23c5f35858e to your computer and use it in GitHub Desktop.
sysvinit vs systemd
Sysvinit Systemd
================================= ===================================================================
service frobozz start systemctl start frobozz
service frobozz stop systemctl stop frobozz
service frobozz restart systemctl restart frobozz
service frobozz reload systemctl reload frobozz
service frobozz condrestart systemctl condrestart frobozz
service frobozz status systemctl status frobozz
ls /etc/rc.d/init.d/ systemctl
systemctl list-unit-files --type=service
ls /lib/systemd/system/*.service /etc/systemd/system/*.service
chkconfig frobozz on systemctl enable frobozz
chkconfig frobozz off systemctl disable frobozz
chkconfig frobozz systemctl is-enabled frobozz
chkconfig --list systemctl list-unit-files --type=service
ls /etc/systemd/system/*.wants/
chkconfig --list | grep 5:on systemctl list-dependencies graphical.target
chkconfig frobozz --list ls /etc/systemd/system/*.wants/frobozz.service
chkconfig frobozz --add systemctl daemon-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment