From 4a50857d70df9e17b0fe311c9aefbf847e26f47c Mon Sep 17 00:00:00 2001 From: Julio Capote <6135+capotej@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:24:40 -0400 Subject: blog post --- content/blog/2024-08-18-user-services-with-systemd.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/blog/2024-08-18-user-services-with-systemd.md b/content/blog/2024-08-18-user-services-with-systemd.md index 83d8bb1..b79c02b 100644 --- a/content/blog/2024-08-18-user-services-with-systemd.md +++ b/content/blog/2024-08-18-user-services-with-systemd.md @@ -9,9 +9,9 @@ tags = ["systemd","selfhosting"] Recently, I've started using `systemd` order to manage personal services on my servers. -Before that, I had either set up system-wide unit files or, for more ad-hoc services, started the process inside of a `screen` session, then detaching, hoping the process didn't crash overnight. +Before that, I had set up classic system-wide unit files or, for more ad-hoc services, started the process inside of a `screen` session, then detaching, hoping the process didn't crash overnight. -Using `systemd` instead is way better, since you get stuff like `journalctl` to view logs and `RestartAlways` keep things running after random crashes. Plus, all configuration lives in `$HOME` making it easy to edit and back up. +Using a user instance of `systemd` is way better, since you get stuff like `journalctl` to view logs and `RestartAlways` keep things running after random crashes. Plus, all configuration now lives in `$HOME` making it easy to edit and back up. In this post, I will show you how to set this up on any modern Debian-based system (or any distro that uses `systemd`, really). @@ -77,7 +77,7 @@ This starts `example` as soon as your copy `systemd` is launched (which should b ### Starting, Stopping and Status -You can now run the same `systemctl` commands you are used to, except they are run as your user (instead of root) and now require the `--user` argument: +You can now run the same `systemctl` commands you are used to, except they are run as your user (instead of `root`) and now require the `--user` argument: $ systemctl --user start example -- cgit v1.2.3