aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/shepherd/init.d/my-daemons.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/config/shepherd/init.d/my-daemons.scm b/config/shepherd/init.d/my-daemons.scm
index 85de6d2..6388850 100644
--- a/config/shepherd/init.d/my-daemons.scm
+++ b/config/shepherd/init.d/my-daemons.scm
@@ -4,12 +4,15 @@
#:docstring "Habit tracker"
#:provides '(habit-logs)
#:start (make-forkexec-constructor
- (list "sbcl" "--load"
- (string-append (getenv "HOME") "/.sbclrc")
+ (list "sbcl"
"--load"
- (string-append (getenv "HOME") "/dev/common-lisp/todo-demo/habit.lisp")
- "--eval" "(habit-log::main)" "--non-interactive")
+ (string-append (getenv "HOME") "/dev/common-lisp/todo-demo/habit.asd")
+ "--eval" "(asdf:load-system :habit)"
+ "--eval" "(habit-log::main)"
+ "--non-interactive")
#:directory (string-append (getenv "HOME") "/dev/common-lisp/todo-demo/")
+ #:environment-variables (list (string-append "HABIT_DIR=" (getenv "HOME") "/org/habits/")
+ "PORT=4242")
#:log-file "/tmp/habits.log")
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:respawn? #t))