Description of problem: When a root filesystem is dependent on userspace programs the halt/reboot process will not work. This happens because killall5/killall9 called by /etc/init.d/halt will kill those programs and might therefore either stop the halt/reboot process or yield other problems. The attached patches apply to the latest sysvinit sources (killall and init) and add multiple '-x program' options to killall5/killall9. This is mainly needed when the root filesystem is either a cluster filesystem like gfs/ocfs2/glusterfs or nfs/nfs4. Version-Release number of selected component (if applicable): all (fedora,rhel5) How reproducible: Always Steps to Reproduce: 1. Use nfs4/gfs as rootfilesystem and the reboot or halt will kill programs needed for filesystem interaction (aisexec, clvmd, groupd, rpcbind, rpc.idmapd,..) 2. 3. Actual results: Those programs get killed Expected results: Those programs should survive Additional info: Goal would be to get it working. First step might be to add -x options to killall5/9 See other bugs for patches to the relevant initscripts.
Created attachment 340514 [details] Patch for killall5/9 to exclude programs from being killed with multiple -x options
The current rawhide/upstream has -o options to exclude pids; is this 'good enough'? (It would require a separate layer of indirection.)
If there is a way to fill in pids to killall5 when called by halt/reboot. It is perfectly ok for us. Is there a way to fill in pids to killall5 when called by the initscripts?
Not yet, but we can work on it. I'd just like to avoid adding new things to sysvinit if what's currently there can be made to work. Ergo, closing this request.
Should I open a new BZ because of the integration of killall5 -o in the initscripts? Or can we use the Bug (BZ #496859) already open?
Existing one is OK.