aboutsummaryrefslogtreecommitdiff
path: root/user-shepherd.service
diff options
context:
space:
mode:
authorEfraim Flashner2020-04-06 07:21:32 +0000
committerShepherd2020-04-06 07:21:38 +0000
commit4a04255405d0aaae9a8c6c86b49d6b22180fc2f7 (patch)
treec11ab335966ad8cd2eaf19d8c5a0be64a04391a9 /user-shepherd.service
parentf5127fc7ae8dbb1ea82b735e4809cca19cd24523 (diff)
downloadgn-shepherd-services-4a04255405d0aaae9a8c6c86b49d6b22180fc2f7.tar.gz
systemd: Add service to start shepherd at start-up.
We would add this as a systemd-user service in .config/systemd, but that would (IIRC) only actually start when someone logged in as the shepherd user, which would be less useful.
Diffstat (limited to 'user-shepherd.service')
-rw-r--r--user-shepherd.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/user-shepherd.service b/user-shepherd.service
new file mode 100644
index 0000000..b47c103
--- /dev/null
+++ b/user-shepherd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Launch user shepherd daemon
+Wants=guix-daemon.service
+
+[Service]
+Type=oneshot
+ExecStart=/var/guix/profiles/per-user/shepherd/guix-profile/bin/shepherd
+User=shepherd
+Group=shepherd
+
+[Install]
+WantedBy=multi-user.target