Linux/Systemd
From charlesreid1
Overview
Systemd is the initialization system, and is the new de-facto standard on most linux distributions. (<-- written March 2016)
To start or stop processes, use systemctl
$ systemctl restart samba
to check the status of a process:
$ systemctl status nfs-kernel-server
You can see if somethign is enabled using the is-enabled argument/otpion:
$ systemctl is-enabled ssh
Logging
systemd has a component called journald that handles logging. This creates binary logs, which use much less space than text logs but are mroe difficult to read.
The journalctl
command gives you access to the system logs.
To follow new log output on the system:
$ journalctl -f
(this is similar to tail -f /var/log/my_log_file
)
You can filter the output by PID:
$ journalctl PID=15800
You can also use the name of the process to filter it:
$ journalctl -u httpd
Related
linux networking all the pages for linux networking
Diagnosing network interfaces: Linux/Network Interfaces Connecting to nodes with ssh: Linux/SSH Bridging networks with ssh tunnels: Linux/SSH Linux file server nfs/smb/sshfs: Linux/File Server Samba on linux: Linux/Samba Automounting network shares on linux: Linux/Automount Network Shares Monitoring system resources: Linux/System Monitoring Linux systemd: Linux/Systemd
IP Schema (ipcalc): Linux/IP Schema DHCP Server: Linux/DHCP DNS Server: Linux/DNS NTP Server: Linux/NTP
|