get the systemd service file

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2015-11-27 19:25:14 +01:00
parent eda8e3a963
commit e5f15e216d

View file

@ -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/.*=//'
}