Splux Linux

source-based Linux using SPS

sps-extra · log · files · refs · tags · releases · people · languages · GitHub · file

net/haproxy/files/shepherd-haproxy.scm


Scheme

329 bytes at e2d5247 · GitHub

(use-modules (shepherd service))
(register-services
 (list (service
        '(haproxy)
        #:requirement '()
        #:documentation "HAProxy load balancer"
        #:start (make-forkexec-constructor '("/usr/sbin/haproxy" "-f" "/etc/haproxy/haproxy.cfg" "-db"))
        #:stop (make-kill-destructor)
        #:respawn? #t)))