From 990ccdf72154cb16b62c2d535f3671e1ebb90de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz> Date: Thu, 25 Apr 2024 15:13:05 +0200 Subject: [PATCH] LaBrea: Add more LSB-like endpoints to start script --- hp-labrea/labrea-idea | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hp-labrea/labrea-idea b/hp-labrea/labrea-idea index b7fccef..a7c69bd 100755 --- a/hp-labrea/labrea-idea +++ b/hp-labrea/labrea-idea @@ -24,6 +24,8 @@ done function log_daemon_msg () { echo -n "$@"; } function log_end_msg () { [ $1 -eq 0 ] && echo " OK" || echo " Failed"; } function status_of_proc () { [ -f "$PID" ] && ps u -p $(<"$PID") || echo "$PID not found."; } +function start_daemon () { shift; shift; $* ; } +function killproc () { kill $(cat $PID) ; } [ -f /lib/lsb/init-functions ] && . /lib/lsb/init-functions -- GitLab