2015 Objective Updates Flashcards
Upstart
A replacement daemon for the old SysVinit initialization program (For Debian/Ubuntu types)
/etc/init
Holds job configuration files
initctl list
List all jobs located in /etc/init
start jobname
starts a job (upstart)
stop jobname
stops a job (upstart)
restart jobname
restarts a job (upstart)
Systemd
A daemon that manages all other system daemons (For CentOS 7)
journald
Responsible for event logging in the system
journalctl
Used to query the coontents of the systemd journal
systemctl restart httpd.service
Restarts the service
systemctl enable httpd.service
Enable a service to start at boot time
systemctl stop httpd.service
Stop a service
systemctl isolate graphical.target
Moves into the graphical target
systemctl set-default graphical.target
Sets the default target to graphical.target
systemctl get-default
Tells you the current default target
System directory that contains the core system unit configuration files
/usr/lib/systemd/system
Custom configuration directory which is override by any matching configurations in the system unit configuration libraray
/etc/systemd/system
systemctl -t help
Display different unit types on the system
systemctl list-units –type=target | grep target
Overview of available targets
systemctl list-unit-files –type=target –all
Will show all targets, enabled and disabled