Bug 149226 - sys-cluster/torque-2.1.2-r1 deletes needed dirs on re-emerge
|
Bug#:
149226
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: hp-cluster@gentoo.org
|
Reported By: ian@syndicated-productions.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: sys-cluster/torque-2.1.2-r1 deletes needed dirs on re-emerge
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-09-26 13:42 0000
|
When re-emerging (upgrading, rebuilding) torque, dirs that do not have any
configuraiton files in them are cleaned up when the previously installed
version is unmerged.
Some keepdirs should fix this, I think. Changing the 'install' command to a
'keepdir' command (and making the chroot mandatory) in pbs_createdirs seems to
fix it on my system, at any rate.
Don't restrict bugs without any reason. Just leave the checkboxes alone.
Good catch. We can't just change it, because the function also gets run in
pkg_postinst().
yeah, plus only certain dirs need it, and it depends on whether we're USEing
'server' or not..
I added a little fix into 2.1.2-r1 -- should hit rsync in an hour or so.
Almost perfect. all appropriate dirs are kept, however pbs_server for some
reason seems to think that the .keep file in server_priv/queues is a queue file
and tries to parse it. This is actually messing up my real queue on server
restart oddly enough :(
I'm working on a patch to make pbs_server ignore dot-files, as it seems
super-easy and i can't see this limitation causing any operational issues..
Would this be better than risking server_priv/queue be removed due to no .keep?
update -- a browse of the source indicates that que_recov reading an empty file
should clean itself up properly, so my issue must be elsewhere (possibly the
way queues are malloc'd)..
So if we dont mind the error message on pbs_server start, i guess nothing needs
to change.