[[feature-systemd]]= systemdCockpit uses https://www.freedesktop.org/wiki/Software/systemd/[systemd]and the DBus APIs it provides to configure and monitor core aspects ofthe system. Use of alternate system APIs are not currently implemented.For non root users, systemd controls access to its APIs viaxref:privileges.adoc[Policy Kit] and a user logged into Cockpit will havethe same permissions as they do from the command line.Cockpit retrieves information about the host and changes the hostnamevia the `+hostnamed+` daemon. To perform similar tasks from the commandline use thehttps://www.freedesktop.org/software/systemd/man/hostnamectl.html[`+hostnamectl+`]command:....$ hostnamectlStatic hostname: pink.example.comPretty hostname: PinkIcon name: computer-desktopChassis: desktopMachine ID: ef00b79be229463cbb844c3e715de96cBoot ID: 934983d64d34465cb5a8383b5a89ad8cOperating System: Fedora 22 (Twenty Two)CPE OS Name: cpe:/o:fedoraproject:fedora:22Kernel: Linux 4.0.4-301.fc22.x86_64Architecture: x86-64....Cockpit configures the system time and time zone via the `+timedated+`daemon. To perform similar tasks from the command line use thehttps://www.freedesktop.org/software/systemd/man/timedatectl.html[`+timedatectl+`]command:....$ timedatectl list-timezonesAfrica/AbidjanAfrica/AccraAfrica/Addis_AbabaAfrica/Algiers.......Cockpit can manage the list of NTP servers used by `+systemd-timesyncd+`by putting its own file into `+/etc/systemd/timesyncd.conf.d/+`. Notethat `+systemd-timesyncd+` is not always enabled, depending on theconfiguration of the machine. In that case, Cockpit disabled the UI formanaging the list of NTP servers. In some cases use of `+ntpd+` cancause the `+timedated+` daemon to behave inconsistently with regards totime synchronization.Cockpit reboots or powers down the machine by using thehttps://www.freedesktop.org/software/systemd/man/shutdown.html[`+shutdown+`]command. To perform similar tasks from the command line, run itdirectly:....$ sudo shutdown +15Shutdown scheduled for Sa 2015-09-26 15:49:40 CEST, use 'shutdown -c' to cancel.....Cockpit manages system services and sockets via systemd. To performsimilar tasks from the command line use thehttps://www.freedesktop.org/software/systemd/man/systemctl.html[`+systemctl+`]command:....$ systemctl status cockpitβ cockpit.service - Cockpit Web ServiceLoaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabled)Drop-In: /etc/systemd/system/cockpit.service.dββdebug.confActive: active (running) since Sa 2015-09-26 13:28:02 CEST; 2h 7min agoDocs: man:cockpit-ws(8)Main PID: 6957 (cockpit-ws)Memory: 1.8MCGroup: /system.slice/cockpit.serviceββ 6957 /usr/libexec/cockpit-wsββ29598 /usr/bin/ssh-agent....In order to customize who can perform various actions in system,xref:privileges.adoc#privileges-polkit[create polkit rules] with the following actionsand details:`+org.freedesktop.systemd1.manage-units+`::Permission to manage system services or other units. Detailsavailable: `+unit+`, `+verb+``+org.freedesktop.systemd1.manage-unit-files+`::Permission to manage system services or other unit files.`+org.freedesktop.systemd1.reload-daemon+`::Permission to reload the systemd state.For example, placing the following polkit rule to`+/etc/polkit-1/rules.d/10-http.rule+` allows all users in the`+operators+` group start, stop, and restart the Apache HTTP service:....polkit.addRule(function(action, subject) {if (action.id == "org.freedesktop.systemd1.manage-units") {if (subject.isInGroup("operators") && action.lookup("unit") == "httpd.service") {var verb = action.lookup("verb");if (verb == "start" || verb == "stop" || verb == "restart") {return polkit.Result.YES;}}}});....