aboutsummaryrefslogtreecommitdiffstats
path: root/config/shepherd
diff options
context:
space:
mode:
Diffstat (limited to 'config/shepherd')
-rw-r--r--config/shepherd/init.d/cmk.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/shepherd/init.d/cmk.scm b/config/shepherd/init.d/cmk.scm
new file mode 100644
index 0000000..4c98f1c
--- /dev/null
+++ b/config/shepherd/init.d/cmk.scm
@@ -0,0 +1,14 @@
+(register-services
+ (make <service>
+ #:docstring "SSH tunnel to ingrid CMK server for socket"
+ #:provides '(ingrid-cmk)
+ #:start (make-forkexec-constructor
+ (list "ssh" "-NTv"
+ "-o" "ServerAliveInterval=60"
+ "-o" "ExitOnForwardFailure=yes"
+ "-o" "StreamLocalBindUnlink=yes"
+ "-L" "/tmp/ingridcmk.socket:/omd/sites/ingrid/tmp/run/live"
+ "ingrid@ingrid")
+ #:log-file "/tmp/ingrid-cmk.log")
+ #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
+ #:respawn? #t))