aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
diff options
context:
space:
mode:
Diffstat (limited to 'add-service')
-rwxr-xr-xadd-service8
1 files changed, 8 insertions, 0 deletions
diff --git a/add-service b/add-service
index bdc1933..c8d4917 100755
--- a/add-service
+++ b/add-service
@@ -24,6 +24,14 @@ if [ $num = 1 ]; then
else
if [ -f /var/lock/subsys/$srv ]; then
/sbin/service $srv restart > /dev/null 2>/dev/null || :
+ # restart services that depend of portmap
+ if [ $srv = portmap ]; then
+ for s in amd autofs bootparamd clusternfs mcserv nfs nfslock ypserv ypbind yppasswdd ypxfrd; do
+ if [ -f /var/lock/subsys/$s ]; then
+ /sbin/service $s restart > /dev/null 2>/dev/null || :
+ fi
+ done
+ fi
fi
fi