smeserver-nfs/root/etc/e-smith/events/actions/smeserver-nfs-restart-rpcbind

5 lines
254 B
Perl

#!/usr/bin/perl
#The service rpcbind needs to be restarted before nfs service,
##but sometime it start before so I had to do a specific action
system ('/usr/bin/systemctl restart rpcbind.service') ==0 or die "Error to restart the rpcbind service : $?";