From a462384c236b560463a98e3936f8803cae227ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Fri, 8 Jul 2022 16:08:53 +0200 Subject: some checkmk data --- config/shepherd/init.d/cmk.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/shepherd/init.d/cmk.scm (limited to 'config/shepherd') 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 + #: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)) -- cgit v1.2.3