aboutsummaryrefslogtreecommitdiff
path: root/gn/services/databases.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gn/services/databases.scm')
-rw-r--r--gn/services/databases.scm24
1 files changed, 22 insertions, 2 deletions
diff --git a/gn/services/databases.scm b/gn/services/databases.scm
index 937aa9e..91ac166 100644
--- a/gn/services/databases.scm
+++ b/gn/services/databases.scm
@@ -42,7 +42,20 @@
(http-server-ip virtuoso-configuration-http-server-ip
(default "localhost"))
(http-server-port virtuoso-configuration-http-server-port
- (default 8890)))
+ (default 8890))
+ (checkpoint-interval virtuoso-configuration-checkpoint-interval
+ (default "60"))
+ (scheduler-interval virtuoso-configuration-scheduler-interval
+ (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))
@@ -67,6 +80,7 @@
(home-directory "/var/lib/virtuoso")
(shell (file-append shadow "/sbin/nologin")))))
+
(define (virtuoso-shepherd-service config)
(shepherd-service
(documentation "Run Virtuoso.")
@@ -100,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"