aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-07-08 16:08:53 +0200
committerÓscar Nájera <hi@oscarnajera.com>2022-07-08 16:10:25 +0200
commita462384c236b560463a98e3936f8803cae227ebd (patch)
treedf31b6931ff47b8877e2be02a5a76867137e0095 /config
parent94dc1300afc815303494bfbf75d583cd2cfb9ed6 (diff)
downloaddotfiles-a462384c236b560463a98e3936f8803cae227ebd.tar.gz
dotfiles-a462384c236b560463a98e3936f8803cae227ebd.tar.bz2
dotfiles-a462384c236b560463a98e3936f8803cae227ebd.zip
some checkmk data
Diffstat (limited to 'config')
-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))