X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=am-utils.init;fp=am-utils.init;h=2868beb620c28b1f13b50644b42d1b542eedf9f3;hb=b596b18ce8e0aca98c078ee19e52e16b8bedb5ac;hp=d14c5f8f1037f42b75832608e32e74704af052c7;hpb=db74a6b8b46127a4454b539985a93bf74a83d183;p=packages%2Fam-utils.git diff --git a/am-utils.init b/am-utils.init index d14c5f8..2868beb 100644 --- a/am-utils.init +++ b/am-utils.init @@ -12,6 +12,10 @@ # Demon specified configuration. . /etc/sysconfig/amd +if [ "$1" != "stop" ]; then + check_portmapper || { nls "Error: portmap isn't running" && exit 0; } +fi + RETVAL=0 # See how we were called. case "$1" in