diff options
author | Frederick Muriuki Muriithi | 2024-10-28 16:38:53 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-29 10:31:15 -0500 |
commit | 7d793603189f9d41c8ee87f8bb4c876440a1fce2 (patch) | |
tree | 66691c04d72c5552783090ac88e2501e7f167afb | |
parent | 2dc335ca84ea7f26c6977e6b432f3420b113f0aa (diff) | |
download | guix-bioinformatics-7d793603189f9d41c8ee87f8bb4c876440a1fce2.tar.gz |
Virtuoso: Setup basic database settings
Set up basic database settings to ensure persistence of data across
restarts.
-rw-r--r-- | gn/services/databases.scm | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gn/services/databases.scm b/gn/services/databases.scm index ade82c1..91ac166 100644 --- a/gn/services/databases.scm +++ b/gn/services/databases.scm @@ -46,7 +46,16 @@ (checkpoint-interval virtuoso-configuration-checkpoint-interval (default "60")) (scheduler-interval virtuoso-configuration-scheduler-interval - (default "10"))) + (default "10")) + ;; Database settings + (database-file virtuoso-configuration-database-file + (default "/var/lib/virtuoso/virtuoso.db")) + (lock-file virtuoso-configuration-lock-file + (default "/var/lib/virtuoso/virtuoso.lck")) + (transaction-file virtuoso-configuration-transaction-file + (default "/var/lib/virtuoso/virtuoso.trx")) + (syslog virtuoso-configuration-syslog + (default "0"))) (define (virtuoso-activation config) (with-imported-modules '((guix build utils)) @@ -71,6 +80,7 @@ (home-directory "/var/lib/virtuoso") (shell (file-append shadow "/sbin/nologin"))))) + (define (virtuoso-shepherd-service config) (shepherd-service (documentation "Run Virtuoso.") @@ -104,7 +114,13 @@ (format port "[HTTPServer]~%") (format port "ServerPort = ~a:~a~%" #$(virtuoso-configuration-http-server-ip config) - #$(virtuoso-configuration-http-server-port config))))))) + #$(virtuoso-configuration-http-server-port config))) + (format port + "[Database]~%DatabaseFile = ~a~%LockFile = ~a~%TransactionFile = ~a~%Syslog = ~a~%" + #$(virtuoso-configuration-database-file config) + #$(virtuoso-configuration-lock-file config) + #$(virtuoso-configuration-transaction-file config) + #$(virtuoso-configuration-syslog config)))))) #:directory #$(virtuoso-configuration-state-directory config) #:user "virtuoso" #:group "virtuoso" |