MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Nice. Did you try exorcism and voodoo yet ?
Now really, that behaviour is weird. Did you search the entire system for further instances of tmpwatch (not that there is an other copy in /bin or /sbin...)? Sorry, I just can't think of anything else.
Did you search the entire system for further instances of tmpwatch
Now that you mentioned it, I ran find / | grep tmpwatch. I didn't find another instance or binary of tmpwatch, BUT I found something that solved the problem.
This search came up with a file called /etc/sysconfig/tmpwatch, which upon opening revealed the following lines:
After more than 1 hour, my files in the tmp folders remain!
Now, it would be really interesting to know WHAT service it actually was, still deleting my files (considering that I already removed the actual tmpwatch binary from /usr/sbin). But for the actual problem - it is solved now.
Thanks to everyone for help! If you find out this mysterious file deleting service of Mandriva, please drop me a message. Just for curiosity.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Hmm. I was quite sure you had looked, but sometimes I do overlook the obvious, so I asked...
If the system loads tmpwatch during startup, renaming or deleting the binary won't have any effect. Did you boot after renaming or deleting the culprit? Because it must be the cause, it simply would not make any sense at all that changing /etc/sysconfig/tmpwatch would halt a differently named program.
If the system loads tmpwatch during startup, renaming or deleting the binary won't have any effect. Did you boot after renaming or deleting the culprit?
I did ps aux | grep tmpwatch before deleting the binary. It was not running. But I cannot reboot the PC, as it's a production server.
Maybe some other service has wrapped tmpwatch into its use, causing it not to show up with ps? Obviously, the problem was caused by tmpwatch somehow, as the exclusion list fixed it.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Or tmpwatch calls something else and exits. At least it must reload its configuration. Oh well, since the exclusion works -- btw. is tmpwatch a script? Maybe you can look into it and see what it does.
is tmpwatch a script? Maybe you can look into it and see what it does.
Seems to be a binary. To me it seems that it is not something left running in the background, but rather something that the system runs periodically (even though I was unable to find it from crontab with its own name). That's why changing the configuration has an immediate effect.
If deleting the binary led to no consequence, this is what I think happened:
— The tmpwatch binary is loaded and run at startup as a kind of daemon, not as a cron job, else later calls would have failed.
— This binary is notified of configuration changes by inotify, or it periodically looks at the configutation file's timestamp.
In Linux/Unix, file descriptors are associated with the file inodes, not file names. A single inode may have any number of names (using hard links). Besides, opening an inode is like creating a temporary new name which resides in memory.
The rm command does two things:
— delete the given name;
— if that name was the last, also delete the inode (sort of…).
In your case, you probably deleted the last filesystem inode, but one probably remained in memory, thus enabling the continued use of the program until its exit.
That's a good response, I wonder how this "for want of a better word- error" was created to begin with.
I've never had such a problem,
I have often relied on a package (sorting deps) when configuring, that can't be found or installed with out removing the last weeks worth of updates. Or relied on a package linking correctly with the newly installed....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.