LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-17-2008, 05:41 PM   #16
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283

Here is a temp fs line from fstab.

Some music recording programs work better with it, I don't know how it is used though.

Usually amongst the top 3 lines, / , /boot, swap (maybe) then...

tmpfs /dev/shm tmpfs defaults 0 0

Confirming Mandriva connection.

regards, Glenn
 
Old 09-18-2008, 02:52 AM   #17
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
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.

Last edited by JZL240I-U; 09-18-2008 at 02:53 AM.
 
Old 09-18-2008, 05:19 AM   #18
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U View Post
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:

Code:
# (oe) define files/directories/sockets tmpwatch should ignore (#18488)
TMPWATCH_EXCLUDES="-x /tmp/.ICE-unix -x /tmp/.X*-unix -x /tmp/.font-unix -x /tmp/.Test-unix"
I edited it to add /tmp/* and /home/username/tmp/*, like this:

Code:
# (oe) define files/directories/sockets tmpwatch should ignore (#18488)
TMPWATCH_EXCLUDES="-x /tmp/.ICE-unix -x /tmp/.X*-unix -x /tmp/.font-unix -x /tmp/.Test-unix /tmp/* /home/make/tmp/*"
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.

Quote:
Originally Posted by JZL240I-U View Post
Did you try exorcism and voodoo yet?
That would've been my next, locical step.

Last edited by make; 09-18-2008 at 05:22 AM.
 
Old 09-18-2008, 05:27 AM   #19
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
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.

Btw: Glad you got rid of that pest .

Last edited by JZL240I-U; 09-18-2008 at 05:29 AM.
 
Old 09-18-2008, 06:40 AM   #20
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U View Post
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.
 
Old 09-18-2008, 06:44 AM   #21
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
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.

Last edited by JZL240I-U; 09-18-2008 at 06:45 AM.
 
Old 09-19-2008, 12:53 AM   #22
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U View Post
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.
 
Old 09-19-2008, 02:40 AM   #23
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
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.

Yves.
 
Old 09-19-2008, 04:33 AM   #24
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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....

But that's me, I configure till .. re-install.

Regards, Glenn
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesn't chmod +t stop others from deleting my files in Ubuntu HGeneAnthony Linux - General 4 10-27-2006 04:04 PM
How to stop Mandriva from deleting updates after they are installed hctham Mandriva 2 03-16-2006 08:35 PM
Deleting tmp files satimis Fedora 6 10-31-2004 08:59 PM
deleting /tmp on boot-up perry Linux - Security 1 07-22-2004 12:36 AM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration