Blog
-
Init Systems
To learn what init system your linux box uses, you can do
sudo stat /proc/1/exe
, since init always runs with pid 1.The ansible
service
module is an abstraction over the underlying OS’s default init system. It’ssystemd
on Ubuntu 16.10 “Yaketty” (butupstart
on 16.04 “Xenial”)Similarly,
package
is an abstraction over package managers,apt
on Ubuntu butyum
on Fedora. Each of these abstractions allow users to write more generic code, at the loss of more specific functionality that their OS specific counterparts provide(There areapt
andyum
modules, for example).