You are not logged in.

#1 2005-09-27 08:09:48

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

How to leave /proc/[pid]/status files not be deleted?

How to leave /proc/[pid]/status files not be deleted, even when the proc ended?

Offline

#2 2005-09-27 10:26:58

Karma XXL
Member
From: Budapest, Hungary
Registered: 2005-06-13
Posts: 91

Re: How to leave /proc/[pid]/status files not be deleted?

As far as I know, the /proc filesystem is a virtual filesystem created by the kernel to provide an easy access to the running processes. If a process is terminated, the relevant directory will be deleted.

I don't think this behavior could be changed without hacking something in the kernel...


Ailen:
Kernel: Linux 2.6.14-rc4-ck1 #1 PREEMPT
Built on: Mon Oct 17 14:51:37 CEST 2005
Hardware: Mobile AMD Sempron(tm) Processor 2800+ AuthenticAMD
WM: E17 snapshot 20051016

Offline

#3 2005-09-27 12:08:53

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: How to leave /proc/[pid]/status files not be deleted?

I'm trying to use this toolset:
http://www.tldp.org/HOWTO/Process-Accounting/index.html

You can find it in the extra repo, named "acct".

Offline

#4 2005-09-27 17:39:31

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to leave /proc/[pid]/status files not be deleted?

There was something about that today on the ML. It seems you'll need to compile a kernel with this feature.

Offline

#5 2005-09-28 05:28:28

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: How to leave /proc/[pid]/status files not be deleted?

OK, I am going to the arch wiki to get some help about compiling a kernel.
I haven't done something like this before, any tips?

Offline

#6 2005-09-28 06:42:13

awalk
Member
From: Perth, Western Australia
Registered: 2005-02-14
Posts: 40

Re: How to leave /proc/[pid]/status files not be deleted?

Back up your existing kernel, and have a Live CD in case something goes wrong and you can no longer boot from your harddrive.

Offline

#7 2005-09-28 09:20:42

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: How to leave /proc/[pid]/status files not be deleted?

I've no idea on how to back up or restore a kernel.
But I have a CDLinux.
It's time to have a bet:)

Offline

Board footer

Powered by FluxBB