From 67d99cd7e533fb867aca258175660885793b1481 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 25 Oct 2019 09:09:50 -0500 Subject: gn: Add service files for bnw --- gn/services/bnw.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gn/services/bnw.service (limited to 'gn/services/bnw.service') 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 -- cgit v1.2.3