From 55da813dd52d03b24eda1f5f00cced1b3701e483 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Oct 2023 10:23:22 +0300 Subject: Add hrdp service --- shepherd/disabled/hrdp-project.scm | 14 -------------- shepherd/init.d/hrdp-project.scm | 12 ++++++++++++ 2 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 shepherd/disabled/hrdp-project.scm create mode 100644 shepherd/init.d/hrdp-project.scm (limited to 'shepherd') diff --git a/shepherd/disabled/hrdp-project.scm b/shepherd/disabled/hrdp-project.scm deleted file mode 100644 index 54ad53a..0000000 --- a/shepherd/disabled/hrdp-project.scm +++ /dev/null @@ -1,14 +0,0 @@ -(define hrdp-project - (make - #:provides '(hrdp-project) - #:docstring "Run the hrdp-project web server" - #:start (make-forkexec-constructor - '("/var/guix/profiles/per-user/shepherd/current-guix/bin/guix" - "environment" "--ad-hoc" "hrdp-project" "--" - "sh" "-c" "$GUIX_ENVIRONMENT/main.py") - #:log-file "/home/shepherd/logs/hrdp-project.log") - #:stop (make-kill-destructor) - #:respawn? #t)) -(register-services hrdp-project) - -(start hrdp-project) diff --git a/shepherd/init.d/hrdp-project.scm b/shepherd/init.d/hrdp-project.scm new file mode 100644 index 0000000..86b5f21 --- /dev/null +++ b/shepherd/init.d/hrdp-project.scm @@ -0,0 +1,12 @@ +(define hrdp-project + (make + #:provides '(hrdp-project) + #:docstring "Run the hrdp-project web server" + #:start (make-forkexec-constructor + '("/home/shepherd/run_hrdp-project.sh") + #:log-file "/home/shepherd/logs/hrdp-project.log") + #:stop (make-kill-destructor) + #:respawn? #t)) +(register-services hrdp-project) + +(start hrdp-project) -- cgit v1.2.3