diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-07-21 15:54:26 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-07-21 15:54:26 +0200 |
commit | ee5b70518678392022dfc512c54693711b7d9102 (patch) | |
tree | 8f1546aca25a1ccd0b3533a323d44c5bbf4aa985 | |
parent | ea2f9300275eb58234d5cb75675d950be0e8631f (diff) | |
download | dotfiles-ee5b70518678392022dfc512c54693711b7d9102.tar.gz dotfiles-ee5b70518678392022dfc512c54693711b7d9102.tar.bz2 dotfiles-ee5b70518678392022dfc512c54693711b7d9102.zip |
update habit log service with config vars
-rw-r--r-- | config/shepherd/init.d/my-daemons.scm | 11 |
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)) |