diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-12-07 11:24:09 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-01-13 02:27:42 +0100 |
commit | 2d9291a7f24268ce58a3d98a4ad9a16a05665df0 (patch) | |
tree | f3f60fbf2e9345d43f25daf842126a25b834f389 /config/shepherd/init.d/my-daemons.scm | |
parent | a7c7d9f0c29b7cb564d6eda2e6b11d3cdad2d351 (diff) | |
download | dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.tar.gz dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.tar.bz2 dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.zip |
run roam semantic search as shepherd daemon
Diffstat (limited to 'config/shepherd/init.d/my-daemons.scm')
-rw-r--r-- | config/shepherd/init.d/my-daemons.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/shepherd/init.d/my-daemons.scm b/config/shepherd/init.d/my-daemons.scm index 6388850..1b5daf8 100644 --- a/config/shepherd/init.d/my-daemons.scm +++ b/config/shepherd/init.d/my-daemons.scm @@ -16,3 +16,17 @@ #:log-file "/tmp/habits.log") #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)) + +(let ((workdir (string-append (getenv "HOME") "/dev/dotfiles/scratch/semgrep/"))) + (register-services + (make <service> + #:docstring "Roam semantic DB" + #:provides '(roam-semantic-db) + #:start (make-forkexec-constructor + (list "python" + (string-append workdir "server.py")) + #:directory workdir + #:environment-variables (list (string-append "PATH=" (getenv "HOME") "/.virtualenvs/language/bin")) + #:log-file "/tmp/roam-semantic.log") + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t))) |