PDA

Bekijk de volledige versie : How to start a process with root permissions?



britnet
17-02-2005, 08:44
Hello together,

does somebody know how I can start a process in post-boot with root Permissions?
My Problem is, darkstat crashes after 5 minuten running.

hugo
17-02-2005, 08:47
every process you run at boot, except the dnsmasq, is run as root (admin). check with a ps command right after the boot to check this. Your crash is probably due to another problem.

britnet
17-02-2005, 09:29
You are rigth, it runs as root.

But, why does the process chrashes?

hugo
17-02-2005, 10:30
because it has not been compiled and fully tested. I think it is just a result from a make, wityh some cross compiling parameters, but no extensive testing afterward. Try tu use command line switch to see if some are working better than other. Try also to link to another interface, like br0 or eth0 to see how it goes.

britnet
17-02-2005, 11:47
because it has not been compiled and fully tested. I think it is just a result from a make, wityh some cross compiling parameters, but no extensive testing afterward.

It's darkstat.

The Problem is, why does it crashes after exactly 5 Minutes?

The log says:
"lp driver: get device id"
"neg fail"
"neg fail"

What does this mean?

hugo
17-02-2005, 13:18
try ./darkstat -i ppp0
check if you have the same problem
else try ./darkstat -i br0
then ./darkstat -i eth0 if everything fails.