From 2e57b7007303fac737211e091258f06b2bec2e34 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 9 Feb 2025 16:57:56 +0100 Subject: [PATCH] Mention enable-linger to start the service automatically --- share/systemd/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/share/systemd/README.md b/share/systemd/README.md index 21ad5d0..0c7c2b1 100644 --- a/share/systemd/README.md +++ b/share/systemd/README.md @@ -29,14 +29,22 @@ To start the service immediately, run: systemctl --user start wttrin.service ``` +5. **Check the status**: To verify that your service is running correctly, you can check its status: + +```bash +systemctl --user status wttrin.service +``` + +6. **Start service automatically**: This will ensure the service is running after reboot. + To enable it to start automatically at boot, run: ```bash systemctl --user enable wttrin.service ``` -5. **Check the status**: To verify that your service is running correctly, you can check its status: +Enable user services even if the user is not logged in (specify the user name instead of `USER`): ```bash -systemctl --user status wttrin.service +sudo loginctl enable-linger USER ```