Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How run a daemon as non-root user

by fmerges (Chaplain)
on Dec 05, 2008 at 20:40 UTC ( #728373=note: print w/ replies, xml ) Need Help??


in reply to How run a daemon as non-root user

Hi,

I think you're a bit confused... the fact that you use Proc::PID::File has nothing to do with a daemon, is just to make more handy the manipulation of pid files, like File::Pid does.

Easy way to convert a program into a daemon is using Proc::Daemon.

Then for Debian and derivates, like Ubuntu see the man page of start-stop-daemon and be ready to write a small Bash script, it even allows you to create the pid file, or "daemonize" your process.

Regards,

fmerges at irc.freenode.net


Comment on Re: How run a daemon as non-root user

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://728373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-12-23 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls