From e5f15e216d2fd82d7fb37a906500923396926a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 27 Nov 2015 19:25:14 +0100 Subject: [PATCH] get the systemd service file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- helper_lib.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helper_lib.sh b/helper_lib.sh index 7704f4d..69ba6ee 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -85,3 +85,8 @@ get_docker_effective_command_line_args() { OPTION="$1" get_docker_cumulative_command_line_args $OPTION | tail -n1 } + +get_systemd_service_file(){ + SERVICE="$1" + systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//' +}