From 25ff49f10be442e561f086d9986ab44bdf69af9d Mon Sep 17 00:00:00 2001 From: Amrita Date: Thu, 23 Jan 2025 13:35:45 +0530 Subject: [PATCH] final --- articles/systemd-settargets.asm.xml | 2 +- glues/systemd-more-information.xml | 5 +++++ tasks/systemd-set-targets.xml | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/articles/systemd-settargets.asm.xml b/articles/systemd-settargets.asm.xml index c27743c6c..b95e35c9b 100644 --- a/articles/systemd-settargets.asm.xml +++ b/articles/systemd-settargets.asm.xml @@ -45,7 +45,7 @@ - Introduction to &systemd; Basics + Introduction to &systemd; targets 2024-10-30f diff --git a/glues/systemd-more-information.xml b/glues/systemd-more-information.xml index 6b4058592..c829770bc 100644 --- a/glues/systemd-more-information.xml +++ b/glues/systemd-more-information.xml @@ -60,6 +60,11 @@ Man 1 journalctl System and Service Manager + + + + systemd.target — Target unit configuration + \ No newline at end of file diff --git a/tasks/systemd-set-targets.xml b/tasks/systemd-set-targets.xml index 51e1d2556..9013b4ff2 100644 --- a/tasks/systemd-set-targets.xml +++ b/tasks/systemd-set-targets.xml @@ -65,14 +65,14 @@ WantedBy=multi-user.target Set permissions for the target file. For example: - &prompt.sudo; sudo chmod 644 /etc/systemd/system/test.target + &prompt.sudo; chmod 644 /etc/systemd/system/test.target Link the required services to the target file. Create a .wants directory and then create symbolic links to the services you want to include in your custom target. For example: &prompt.sudo; mkdir -p /etc/systemd/system/custom.target.wants/ - &prompt.sudo; sudo ln -s /etc/systemd/system/test.service /etc/systemd/system/custom.target.wants/ + &prompt.sudo; ln -s /etc/systemd/system/test.service /etc/systemd/system/custom.target.wants/