D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] running commands as daemons or detached processes

 

jody salt wrote:
> Hi,
>  
> Is there a simple way to start a process as a daemon?? or make a process
> detach from my terminal, so it runs as a background process??
>  
> Basically I want to run:
> 
> "svscan /service"
> as a background process.
>  
> I've added "svscan /service" to my inittab - however I would like to
> boot this process without restarting my server.
>  
> I imagine this should be pretty simple linux thing to do!

Indeed it would.

$ nohup <command> &

jd

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html