Next: The dmd and unknown services, Previous: Service De- and Constructors, Up: Services [Contents][Index]
FIXME: This needs a lot of work.
You can create a service and then register it this way:
(define apache (make <service> #:provides '(apache) #:start (...) #:stop (...))) (register-services apache)
However, as you usually won’t need a variable for the service, you can
pass it directly to register-services
. Here is an example that
also specifies some more initial values for the slots:
(register-services (make <service> #:provides '(apache-2.0 apache httpd) #:requires '() #:start (...) #:stop (...) #:actions (make-actions (reload-modules (...)) (restart (...)))))