<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://coolscript.net/index.php?action=history&amp;feed=atom&amp;title=Systemctl_Cheet_Sheet</id>
	<title>Systemctl Cheet Sheet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://coolscript.net/index.php?action=history&amp;feed=atom&amp;title=Systemctl_Cheet_Sheet"/>
	<link rel="alternate" type="text/html" href="https://coolscript.net/index.php?title=Systemctl_Cheet_Sheet&amp;action=history"/>
	<updated>2026-06-02T16:17:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://coolscript.net/index.php?title=Systemctl_Cheet_Sheet&amp;diff=1144&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;= systemctl Cheat Sheet =  This is a generic `systemctl` cheat sheet using `alloy.service` as the example unit name.  == Service Status ==  &lt;pre&gt; systemctl status alloy.service systemctl is-active alloy.service systemctl is-enabled alloy.service &lt;/pre&gt;  == Start, Stop, Restart ==  &lt;pre&gt; systemctl start alloy.service systemctl stop alloy.service systemctl restart alloy.service systemctl reload alloy.service &lt;/pre&gt;  == Enable or Disable at Boot ==  &lt;pre&gt; systemctl enable a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://coolscript.net/index.php?title=Systemctl_Cheet_Sheet&amp;diff=1144&amp;oldid=prev"/>
		<updated>2026-04-20T14:23:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= systemctl Cheat Sheet =  This is a generic `systemctl` cheat sheet using `alloy.service` as the example unit name.  == Service Status ==  &amp;lt;pre&amp;gt; systemctl status alloy.service systemctl is-active alloy.service systemctl is-enabled alloy.service &amp;lt;/pre&amp;gt;  == Start, Stop, Restart ==  &amp;lt;pre&amp;gt; systemctl start alloy.service systemctl stop alloy.service systemctl restart alloy.service systemctl reload alloy.service &amp;lt;/pre&amp;gt;  == Enable or Disable at Boot ==  &amp;lt;pre&amp;gt; systemctl enable a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= systemctl Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
This is a generic `systemctl` cheat sheet using `alloy.service` as the example unit name.&lt;br /&gt;
&lt;br /&gt;
== Service Status ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl status alloy.service&lt;br /&gt;
systemctl is-active alloy.service&lt;br /&gt;
systemctl is-enabled alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Start, Stop, Restart ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl start alloy.service&lt;br /&gt;
systemctl stop alloy.service&lt;br /&gt;
systemctl restart alloy.service&lt;br /&gt;
systemctl reload alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enable or Disable at Boot ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl enable alloy.service&lt;br /&gt;
systemctl disable alloy.service&lt;br /&gt;
systemctl enable --now alloy.service&lt;br /&gt;
systemctl disable --now alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Reload Unit Files ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl daemon-reload&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this after changing a unit file in `/etc/systemd/system/`.&lt;br /&gt;
&lt;br /&gt;
== View Unit Definition ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl cat alloy.service&lt;br /&gt;
systemctl show alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Edit a Unit ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl edit --full alloy.service&lt;br /&gt;
systemctl edit alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* `--full` edits the whole unit file&lt;br /&gt;
* without `--full`, systemd creates a drop-in override&lt;br /&gt;
&lt;br /&gt;
== Remove Overrides ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl revert alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logs ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
journalctl -u alloy.service&lt;br /&gt;
journalctl -u alloy.service -n 50 --no-pager&lt;br /&gt;
journalctl -u alloy.service -f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Failed Units and Unit Files ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl list-units --failed&lt;br /&gt;
systemctl --failed&lt;br /&gt;
systemctl list-unit-files&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Mask and Unmask ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl mask alloy.service&lt;br /&gt;
systemctl unmask alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
`mask` prevents manual or automatic start.&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl list-dependencies alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Common Workflow After Changing a Service ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl daemon-reload&lt;br /&gt;
systemctl restart alloy.service&lt;br /&gt;
systemctl status alloy.service&lt;br /&gt;
journalctl -u alloy.service -n 50 --no-pager&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Common Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemd-analyze verify /etc/systemd/system/alloy.service&lt;br /&gt;
systemctl cat alloy.service&lt;br /&gt;
journalctl -xeu alloy.service&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>