mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 14:18:38 +02:00
cleaning
This commit is contained in:
parent
949b92bee7
commit
45e187faf2
1 changed files with 3 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
(define-module (glicid services openldap)
|
||||
#:use-module (glicid packages openldap)
|
||||
#:use-module (gnu packages openldap)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (guix)
|
||||
|
@ -8,7 +8,6 @@
|
|||
#: export (
|
||||
openldap-configuration
|
||||
openldap-configuration?
|
||||
%default-slapd.conf
|
||||
openldap-shepherd-service
|
||||
openldap-service-type
|
||||
)
|
||||
|
@ -30,18 +29,13 @@
|
|||
(default "/var/run/openldap/slapd.pid")
|
||||
)
|
||||
(config-file openldap-configuration-config-file
|
||||
(default %default-slapd.conf)
|
||||
(default (file-append openldap "/etc/openldap/slapd.conf"))
|
||||
)
|
||||
(log-file openldap-configuration-log-file
|
||||
(default "/var/log/slapd.log")
|
||||
)
|
||||
)
|
||||
|
||||
(define %default-slapd.conf
|
||||
(plain-file "slapd.conf" "
|
||||
# Empty file for test
|
||||
"))
|
||||
|
||||
(define openldap-shepherd-service
|
||||
(match-lambda
|
||||
(($ <openldap-configuration> openldap uri logflags pid-file config-file log-file)
|
||||
|
@ -50,7 +44,7 @@
|
|||
(provision '(slapd) )
|
||||
(documentation "Run openldap.")
|
||||
(requirement '(user-processes))
|
||||
(respawn? #f)
|
||||
(respawn? #t)
|
||||
(start #~(make-forkexec-constructor
|
||||
(list
|
||||
#$(file-append openldap "/libexec/slapd")
|
||||
|
|
Loading…
Add table
Reference in a new issue