From 2e50ef9e537d7006c0b89eb4302ba3d556942000 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Tue, 25 Feb 2014 10:06:23 +0800 Subject: [PATCH] add systemctl.md --- linux/systemctl.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 linux/systemctl.md diff --git a/linux/systemctl.md b/linux/systemctl.md new file mode 100644 index 0000000000..aa3549e0d6 --- /dev/null +++ b/linux/systemctl.md @@ -0,0 +1,23 @@ +# systemctl + +> Control the systemd system and service manager + +- List failed units + +`systemctl --failed` + +- Start/Stop/Restart a service + +`systemctl start/stop/restart {{unit}}` + +- Show the status of a unit + +`systemctl status {{unit}}` + +- Enable/Disable a unit to be started on bootup + +`systemctl enable/disable {{unit}}` + +- Reload systemd, scanning for new or changed units + +`systemctl daemon-reload`