systemd vs chkconfig cheat sheet

This post will be dedicated to migration from old-school sysv-init commands, like

service blablabla start/stop/restart/status

to newer alternative, systemd, which is default, in modern Linux distributions

Sysvinit Command Systemd Command Notes
service frobozz start systemctl start frobozz Used to start a service (not reboot persistent)
service frobozz stop systemctl stop frobozz Used to stop a service (not reboot persistent)
service frobozz restart systemctl restart frobozz Used to stop and then start a service
service frobozz reload systemctl reload frobozz When supported, reloads the config file without interrupting pending operations.
service frobozz condrestart systemctl condrestart frobozz Restarts if the service is already running.
service frobozz status systemctl status frobozz Tells whether a service is currently running.
ls /etc/rc.d/init.d/ systemctl (or) systemctl list-unit-files –type=service (or)
ls /lib/systemd/system/*.service /etc/systemd/system/*.service
Used to list the services that can be started or stopped
Used to list all the services and other units
chkconfig frobozz on systemctl enable frobozz Turn the service on, for start at next boot, or other trigger.
chkconfig frobozz off systemctl disable frobozz Turn the service off for the next reboot, or any other trigger.
chkconfig frobozz systemctl is-enabled frobozz Used to check whether a service is configured to start or not in the current environment.
chkconfig –list systemctl list-unit-files –type=service (or) ls /etc/systemd/system/*.wants/ Print a table of services that lists which runlevels each is configured on or off
chkconfig –list | grep 5:on systemctl list-dependencies graphical.target Print a table of services that will be started when booting into graphical mode
chkconfig frobozz –list ls /etc/systemd/system/*.wants/frobozz.service Used to list what levels this service is configured on or off
chkconfig frobozz –add systemctl daemon-reload Used when you create a new service file or modify any configuration

Note that all /sbin/service and /sbin/chkconfig lines listed above continue to work on systemd, and will be translated to native equivalents as necessary. The only exception is chkconfig –list.

Original content – Fedora systemd vs chkconfig cheat sheet

Second one – http://bencane.com/2012/01/19/cheat-sheet-systemctl-vs-chkconfig/

DevOps technologies

DevOps technologies list

Version Control Systems

  • git

Public cloud providers

  • AWS
  • Azure

Private cloud solutions

  • VMWare VSphere
  • OpenStack

Virtualization/Containers

  • Docker
  • LXC
  • KVM
  • lxc

Continious Integration /  Continious Delivery

  • Jenkins
  • Travis-CI
  • TeamCity
  • Gitlab CI

Infrastructure Management

  • Ansible
  • Puppet
  • Chef
  • Terraform

Monitoring / Dashboard

  • Sensu
  • Graphite
  • Graphana

Databases

  • MySQL
  • PostgreSQL
  • MongoDB

Service Discovery

  • Consul

Orchestration

  • Kubernetes
  • Docker Swarm

Testing

  • Selenium

Free SSL certificate for everyone

Couple days ago I’ve discovered Let’s Encrypt project, the great free alternative to paid SSL-certificated, issued by well-known CA, such as VeriSign.

Ok, let’s assume you want to move your test system to https, all you need to do is, download certbot-auto script from Let’s Encrypt site, and run it. Answer to some questions, it will automate changes in your webserver configs, such as redirect from http to https. Test webserver config, restart it, and voila, no more warning from web browser to self-signed certificates!

There are some drawbacks, firstly, certbot script heavily depends on python libraries. Secondly, free SSL certificate valid for 3 months only, after that you need to refresh it, but this task can be automated. Obviously, for production systems with traffic, you must develop testing procedure, to prevent traffic loss or other similar failures during transition period.

BTW, accoring to Mozilla stats, half of internet traffic already encrypted. Good news!

introduction

Hello, my name is Mikhail Vasilenko, and this is my personal blog. I’m 38, live in Kiev, Ukraine. I’m interested in distributed computer systems and developinging scalable web applications. My hobbies include outdoor hiking, studying neural networks, chilling with my family and friends. Feel free to contact me by email mvasilenko@gmail.com