class DAEMON_NFSD: public DAEMON_INTERNAL{ /*~PROTOBEG~ DAEMON_NFSD */ public: int startif (void); /*~PROTOEND~ DAEMON_NFSD */ }; /* Restart nfsd if ETC_EXPORTS is newer than the process */ PUBLIC int DAEMON_NFSD::startif () { /* #Specification: rpc.nfsd / strategy rpc.nfsd depends on /etc/exports. If the file is empty or do not exist, then rpc.nfsd is not need. It will be killed, or not started. If exports is not empty, it will be started. If it is already running and exports is younger than the process, it will be kill and restart. I suspect there is a way to update nfsd without killing it. Someone is aware of this ? */ return startif_file(f_exports); } class DAEMON_MOUNTD: public DAEMON_INTERNAL{ /*~PROTOBEG~ DAEMON_MOUNTD */ public: int startif (void); /*~PROTOEND~ DAEMON_MOUNTD */ }; /* Restart mountd if ETC_EXPORTS is newer than the process */ PUBLIC int DAEMON_MOUNTD::startif () { /* #Specification: rpc.mountd / strategy rpc.mountd depends on /etc/exports. If the file is empty or do not exist, then rpc.mountd is not need. It will be killed, or not started. If exports is not empty, it will be started. If it is already running and exports is younger than the process, it will be kill and restart */ return startif_file(f_exports); }