Changes

Jump to: navigation, search

XELK-AN-008: How to use systemd on an Embedded system

735 bytes added, 12:45, 20 September 2019
Other useful service commands
systemctl disable ''<service_name>''
 
==== systemctl mask ====
 
There is a third level for stopping a service other than ''stop'' and ''disable'': it is the command <code>mask</code>.
 
It stops the service and it will not possible to start it again using ''start''.
 
<pre>
root@imx6qxelk:~# systemctl mask emergency
Created symlink /etc/systemd/system/emergency.service → /dev/null.
</pre>
 
If we will try to start it:
<pre>
root@imx6qxelk:~# systemctl start emergency
Failed to start emergency.service: Unit emergency.service is masked.
</pre>
 
In this way, the service will not be used as a dependency in the ''Unit''
 
The reverse command is <code>unmask</code>:
<pre>
root@imx6qxelk:~# systemctl unmask emergency
Removed /etc/systemd/system/emergency.service.
</pre>
== Targets ==
8,154
edits

Navigation menu