aboutsummaryrefslogtreecommitdiff
path: root/gn/services/bnw.service
diff options
context:
space:
mode:
authorEfraim Flashner2019-10-25 09:09:50 -0500
committerEfraim Flashner2019-10-25 09:09:50 -0500
commit67d99cd7e533fb867aca258175660885793b1481 (patch)
tree21fe9ea361cb51906e9f13f3dbc3619cd16522fa /gn/services/bnw.service
parent88e218c7f247961cd1dc98f082e178599ed5dfc5 (diff)
downloadguix-bioinformatics-67d99cd7e533fb867aca258175660885793b1481.tar.gz
gn: Add service files for bnw
Diffstat (limited to 'gn/services/bnw.service')
-rw-r--r--gn/services/bnw.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn/services/bnw.service b/gn/services/bnw.service
new file mode 100644
index 0000000..ec7b3f8
--- /dev/null
+++ b/gn/services/bnw.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=BNW web server
+Wants=guix-daemon.service
+
+[Service]
+Environment="BNW_COMMAND=$(/bin/su -l bnw -c '/var/guix/profiles/per-user/bnw/current-guix/bin/guix system container /home/bnw/guix-bioinformatics/gn/services/bnw-container.scm --share=/home/bnw/server=/srv/http --network')"
+ExecStart=/bin/bash -c '${BNW_COMMAND}'
+
+[Install]
+WantedBy=multi-user.target