From 80a9d115fcd582fc1f8e4f28f2e1815d5f6f4501 Mon Sep 17 00:00:00 2001 From: Jake Nabasny Date: Wed, 3 Apr 2024 13:42:31 -0400 Subject: [PATCH] Update README systemd instructions --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7f11f07..51fe218 100644 --- a/README.md +++ b/README.md @@ -59,14 +59,23 @@ objectClass: top EOF ``` -3. Install bureau on your target system and addn the LDAP server credentials to `bureau.yaml`. +3. Install bureau on your target system and add the LDAP server credentials to `bureau.yaml`. 4. Start bureau in daemon mode or with systemd: ``` -./bureau & # daemon -systemctl enable --now bureau # systemd +./bureau & # daemon +systemctl enable --now bureau.timer # systemd ``` +Systemd will generate files owned by `root:root`. If you want to use bureau for user files, you can copy the systemd unit files to the user-specific directory: +``` +cp /etc/systemd/system/bureau.* ~/.config/systemd/user/ +systemctl --user daemon-reload +systemctl --user --now bureau.timer bureau.service +``` + +The `bureau.timer` unit file runs every 5 minutes by default. + 5. The new file should be available instantly: ``` $ cat /tmp/bureau-test.txt