aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2020-04-27 07:26:08 +0000
committerShepherd2020-04-27 07:27:39 +0000
commit124c7bf5129d34b7fc06720f6d247970929aa54f (patch)
treeefbbb598b2448cda2fca762744e484847169a748
parent02901d72103d02fd0cf50c0e699c570b827122f2 (diff)
downloadgn-shepherd-services-124c7bf5129d34b7fc06720f6d247970929aa54f.tar.gz
shepherd: Add virtuoso service
-rw-r--r--shepherd/init.d/virtuoso.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/shepherd/init.d/virtuoso.scm b/shepherd/init.d/virtuoso.scm
new file mode 100644
index 0000000..241fe23
--- /dev/null
+++ b/shepherd/init.d/virtuoso.scm
@@ -0,0 +1,13 @@
+(define virtuoso
+ (make <service>
+ #:provides '(virtuoso)
+ #:docstring "Run the virtuoso web server"
+ #:start (make-forkexec-constructor
+ '("/var/guix/profiles/per-user/shepherd/current-guix/bin/guix" "environment" "--ad-hoc" "virtuoso-ose" "--" "virtuoso-t" "-f")
+ #:directory "/export/virtuoso/var/lib/virtuoso/db"
+ #:log-file "/home/shepherd/logs/virtuoso.log")
+ #:stop (make-kill-destructor)
+ #:respawn? #t))
+(register-services virtuoso)
+
+(start virtuoso)