gnucode-form.scm 962 B

1234567891011121314151617181920212223242526272829
  1. (define-public (gnucode-form)
  2. #:use-module (gnu)
  3. #:use-module (guix gexp)
  4. #:use-module (gnu services)
  5. #:use-module (gnu service shepherd)
  6. #:use-module (gnu packages guile)
  7. #:export (gnucode-form-service-type))
  8. (define (gnucode-form-shepherd-service config)
  9. (shepherd-service
  10. (documentation "Start the guile code in index.scm for gnucode.me")
  11. (provision '(gnucode-guile))
  12. (start #~(make-forkexec-constructor
  13. (list #$(string-append guile "/bin/guile")
  14. "/srv/www/guile/form/index.scm")
  15. #:log-file "/var/log/gnucode-form"
  16. #:user "joshua"
  17. ;;#:directory "/srv/www/guile/form/"
  18. ))
  19. (stop #~(make-kill-destructor))))
  20. (define gnucode-form-service-type
  21. (service-type
  22. (name 'gnucode-form)
  23. (description "Start the guile code in index.scm for gnucode.me")
  24. (extensions
  25. (list (service-extension shepherd-root-service-type guix-shepherd-service)))))