{"id":730,"date":"2016-12-07T10:43:15","date_gmt":"2016-12-07T19:43:15","guid":{"rendered":"\/blog\/?p=730"},"modified":"2023-09-21T09:37:50","modified_gmt":"2023-09-21T00:37:50","slug":"systemd","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=730","title":{"rendered":"systemd"},"content":{"rendered":"\n<h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"systemd_documentation\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd documentation<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd has very comprehensive documentation. Refer to<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><a class=\"external free\" href=\"http:\/\/0pointer.de\/blog\/projects\/systemd-docs.html\" style=\"margin: 0px; padding: 0px 13px 0px 0px; color: rgb(51, 102, 187); text-decoration: none; background: url(\/xe\/&quot;external.png&quot;) right center no-repeat;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">http:\/\/0pointer.de\/blog\/projects\/systemd-docs.html<\/span><\/a><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"Boot_Kernel_Command_Line\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Boot Kernel Command Line<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">On boot&nbsp;<\/span><strong style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd<\/span><\/strong><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;activates (by default), the target unit&nbsp;<\/span><em style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">default.target<\/span><\/em><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;whose job is to activate services and other units by pulling them in via dependencies.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">To override the unit to activate,&nbsp;<\/span><strong style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd<\/span><\/strong><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;parses its own kernel command line arguments via the&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit=<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;command line option. This may be used to temporarily boot into a different boot unit. The classical run-levels are replaced as following:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit=rescue.target<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;is a special target unit for setting up the base system and a rescue shell (similar to run level 1);&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit=emergency.target<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">, is very similar to passing&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">init=\/bin\/sh<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;but with the option to boot the full system from there;&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit=multi-user.target<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;for setting up a non-graphical multi-user system;&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit=graphical.target<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;for setting up a graphical login screen.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">For details about these special systemd boot units, view the man&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.special<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;page. it scripts<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"What_is_the_tool_to_manage_services_with_systemd.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">What is the tool to manage services with systemd?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl is the primary tool to use. It combines the functionality of both service and chkconfig into a single tool that you can use for instance to enable\/disable services permanently or only for the current session.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">list all running services etc:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Refer to man systemctl for more details. systemd-cgls lists the running process in a tree format. It can recursively show the content of any given control group. Refer to man systemd-cgls for more details.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_start.2Fstop_or_enable.2Fdisable_services.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I start\/stop or enable\/disable services?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Activates a service immediately:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">  systemctl start foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Deactivates a service immediately:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">  systemctl stop foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Restarts a service:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl restart foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Shows status of a service including whether it is running or not:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl status foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Enables a service to be started on bootup:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl enable foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Disables a service to not start during bootup:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl disable foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Prevent a service from starting dynamically or even manually unless unmasked:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl mask foo <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Check whether a service is already enabled or not:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl is-enabled foo<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Refer to man systemctl for more details.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_change_the_target_.28runlevel.29.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I change the target (runlevel)?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd has the concept of targets which is a more flexible replacement for runlevels in sysvinit.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Run level 3 is emulated by multi-user.target. Run level 5 is emulated by graphical.target. runlevel3.target is a symbolic link to multi-user.target and runlevel5.target is a symbolic link to graphical.target.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">You can switch to 'runlevel 3' by running<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl isolate multi-user.target <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">You can switch to 'runlevel 5' by running<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl isolate graphical.target <\/span><\/pre><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_change_the_default_target.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I change the default target?<\/span><\/h2><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl set-default &lt;name of target&gt;.target <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">graphical.target is the default. You might want multi-user.target for the equivalent of non graphical (runlevel 3) from sysv init. The full list of targets can be accessed via systemctl list-units --type=target<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd does not use \/etc\/inittab file.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_know_the_current_target.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I know the current target?<\/span><\/h2><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl get-default <\/span><\/pre><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_to_power_off_the_machine.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How to power off the machine?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">You can use<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> poweroff <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Some more possibilities are:&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">halt -p<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">,&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">init 0<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">,&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">shutdown -P now<\/span><\/code><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Note that&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">halt<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;used to work the same as&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">poweroff<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;in previous Fedora releases, but systemd distinguishes between the two, so&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">halt<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">without parameters now does exactly what it says - it merely stops the system without turning it off.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"Does_service_command_work_with_systemd.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Does service command work with systemd?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Yes. It has been modified to call systemctl automatically when dealing with systemd service files. So either of the following commands does the same thing<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><br \/><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl stop NetworkManager <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">(or)<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> service NetworkManager stop <\/span><\/pre><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"Does_chkconfig_command_work_with_systemd.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Does chkconfig command work with systemd?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Yes, for turning on\/off services, compatibility has been provided both ways. chkconfig has been modified to call systemctl when dealing with systemd service files. Also systemctl automatically calls chkconfig when dealing with a traditional sysv init file.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">So either of the following commands does the same thing<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> systemctl disable NetworkManager <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">(or)<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"> chkconfig NetworkManager off <\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">chkconfig --list doesn't list systemd services, only Sys V services. The output of chkconfig takes note of this, along with supplying additional information.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"Does_system-config-services_work_with_systemd.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Does system-config-services work with systemd?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Yes. It does.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_change_the_number_of_gettys_running_by_default.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I change the number of gettys running by default?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">The simplest way is to edit \/etc\/systemd\/logind.conf (<\/span><a class=\"external text\" href=\"http:\/\/www.freedesktop.org\/software\/systemd\/man\/logind.conf.html#NAutoVTs=\" style=\"margin: 0px; padding: 0px 13px 0px 0px; color: rgb(51, 102, 187); text-decoration: none; background: url(\/xe\/&quot;external.png&quot;) right center no-repeat;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">man page<\/span><\/a><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">):<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">[Login]\r\n...\r\nNAutoVTs=8\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">This setting will take effect after reboot.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Alternatively, getty@.services which open the login prompt can be enabled and started individually.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">To add another getty:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl enable getty@tty8\r\nsystemctl start getty@tty8\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">To remove a getty:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl disable getty@tty8\r\nsystemctl stop getty@tty8\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd does not use \/etc\/inittab file.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_set_automatic_login_on_a_virtual_console_terminal.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I set automatic login on a virtual console terminal?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">First create a new service similar to getty@.service:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\"># cp \/lib\/systemd\/system\/getty@.service \\\r\n     \/etc\/systemd\/system\/autologin@.service\r\n# ln -s \/etc\/systemd\/system\/autologin@.service \\\r\n        \/etc\/systemd\/system\/getty.target.wants\/getty@tty8.service\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">then edit ExecStart, Restart and Alias values, like this:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">...\r\nExecStart=-\/sbin\/mingetty --autologin USERNAME&nbsp;%I\r\nRestart=no\r\n...\r\nAlias=getty.target.wants\/getty@tty8.service\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">and finally reload daemon and start the service:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl daemon-reload\r\nsystemctl start getty@tty8.service\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Note that if you exit tty8 session, you wont be able to use it until next reboot or manual start by systemctl, except if you leave Restart as 'always', but I highly recommend to avoid this according to security reasons.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><h2 style=\"margin: 0px 0px 0.6em; padding: 0.5em 0px 0.17em; font-size: 18.24px; background: none rgb(255, 255, 255); font-weight: normal; border-bottom: 1px solid rgb(170, 170, 170); font-family: sans-serif;\"><span class=\"mw-headline\" id=\"How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F\" style=\"margin: 0px; padding: 0px; font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">How do I customize a unit file\/ add a custom unit file?<\/span><\/h2><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">The best way to customize unit files is to add \/etc\/systemd\/system\/foobar.service.d\/*.conf where foobar.service is the name of the service you want to customize. If a directory doesn't already exist, create one and drop a conf file with the settings you want to override. For example,<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\/etc\/systemd\/system\/httpd.service.d\/restart.conf<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">[Service]\r\nRestart=always\r\nRestartSec=30\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Refer to man&nbsp;<\/span><a class=\"external text\" href=\"http:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.unit.html\" style=\"margin: 0px; padding: 0px 13px 0px 0px; color: rgb(51, 102, 187); text-decoration: none; background: url(\/xe\/&quot;external.png&quot;) right center no-repeat;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd.unit<\/span><\/a><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;page for more details.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><div class=\"messagebox\" style=\"margin: 1ex 0px; padding: 5px 5px 5px 45px; font-family: sans-serif; font-size: 12.16px; background-color: rgb(222, 243, 254); border: 1px solid rgb(197, 215, 224); min-height: 35px;\"><div style=\"margin: 0px 0px 0px -40px; padding: 0px; float: left;\"><a href=\"https:\/\/fedoraproject.org\/wiki\/File:Idea.png\" class=\"image\" style=\"margin: 0px; padding: 0px; color: rgb(114, 159, 207); text-decoration: none;\"><img loading=\"lazy\" decoding=\"async\" alt=\"Idea.png\" src=\"https:\/\/fedoraproject.org\/w\/uploads\/a\/a4\/Idea.png\" width=\"35\" height=\"35\" style=\"margin: 0px; padding: 0px; border-width: initial; border-style: none;\" editor_component=\"image_link\" \/><\/a><\/div><div style=\"margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Don't forget to reload systemd daemon using&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl daemon-reload<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;and&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemctl restart foobar<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;after editing a unit file where foobar is the name of the unit. Also note that you can&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">systemd-delta&nbsp;<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">to list the unit files which have been customized and also the precise differences&nbsp;<\/span><\/strong><br \/><\/div><\/div><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">Special care must be taken when overriding options which can be set muliple times (<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">ExecStart<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">,&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">ExecStartPre<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">,&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">ExecStartPost<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;are a common example). Assigning some value to the option&nbsp;<\/span><em style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">appends<\/span><\/em><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;to the existing list, while assiging the&nbsp;<\/span><em style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">empty<\/span><\/em><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;value&nbsp;<\/span><em style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">resets<\/span><\/em><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;the list.<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">For example, let's say we have a service file like this:<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">[Service]\r\nExecStart=\/bin\/echo execstart1\r\nExecStart=\r\nExecStart=\/bin\/echo execstart2\r\nExecStartPost=\/bin\/echo post1\r\nExecStartPost=\/bin\/echo post2\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">When started, this service will print<\/span><\/p>\r\n<span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\r\n<\/span><pre style=\"margin-top: 0.5ex; margin-bottom: 1.5ex; padding: 1em; font-size: 2.6ex; overflow: auto; border: 1px dashed rgb(47, 111, 171); background-color: rgb(249, 249, 249); line-height: 1.1em;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">execstart2\r\npost1\r\npost2\r\n<\/span><\/pre><p style=\"margin-top: 1ex; margin-right: 5ex; margin-bottom: 1ex; padding: 0px; font-size: 12.16px; font-family: sans-serif; background-color: rgb(255, 255, 255);\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">The same rules apply to snippets in&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">.d<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;directories. This means that snippets which override&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">ExecStart<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">&nbsp;and similar settings, often should start with the empty assignment&nbsp;<\/span><code style=\"margin: 0px; padding: 0px; background-color: rgb(249, 249, 249); font-size: 2.4ex;\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">ExecStart=<\/span><\/code><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">, followed by the new setting.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>systemd documentation systemd has very comprehensive documentation. Refer to http:\/\/0pointer.de\/blog\/projects\/systemd-docs.html Boot Kernel Command Line On boot&nbsp;systemd&nbsp;activates (by default), the target unit&nbsp;default.target&nbsp;whose job is to activate services and other units by pulling them in via dependencies. To override the unit to activate,&nbsp;systemd&nbsp;parses its own kernel command line arguments via the&nbsp;systemd.unit=&nbsp;command line option. This may be used [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=730"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}