diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-08-01 17:39:40 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-08-01 17:39:40 +0000 |
commit | 1521a2ec60b300e407b4398a58e156c2deb48fbd (patch) | |
tree | 05dc10630358a8b472ef8fcdb1cafa4e930097e7 /add-service | |
parent | 7f38000eeb03beb1c92577d2850a55ede9e61e3f (diff) | |
download | rpm-helper-1521a2ec60b300e407b4398a58e156c2deb48fbd.tar rpm-helper-1521a2ec60b300e407b4398a58e156c2deb48fbd.tar.gz rpm-helper-1521a2ec60b300e407b4398a58e156c2deb48fbd.tar.bz2 rpm-helper-1521a2ec60b300e407b4398a58e156c2deb48fbd.tar.xz rpm-helper-1521a2ec60b300e407b4398a58e156c2deb48fbd.zip |
restart services that depend of portmap
Diffstat (limited to 'add-service')
-rwxr-xr-x | add-service | 8 |
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 |