On Fri, 11 Nov 2011 21:55:55 +0000
John Austin wrote:

> [root@naxos ~]# cat /etc/rc.d/rc.local 
> #!/bin/sh
> service ypbind stop; sleep 2
> service autofs stop; sleep 2
> service ypbind start; sleep 2
> service autofs start; sleep 2

I do something similar, but I modify it thusly:

/bin/bash -c 'sleep 5 ; service ypbind restart' & < /dev/null > /dev/null 2>&1

That way rc.local doesn't hang, and ypbind gets restarted
in the background.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to