[Gllug] Starting a daemon

John G Walker johngeoffreywalker at yahoo.co.uk
Thu Dec 30 14:16:50 UTC 2010

On Thu, 30 Dec 2010 14:09:47 +0000 Andy Millar <andy at andymillar.co.uk>

> On Thu, 2010-12-30 at 14:01 +0000, Lucian wrote:
> > On Thu, Dec 30, 2010 at 12:40 PM, t.clarke <tim at seacon.co.uk> wrote:
> > `setsid program` might work as well.  
> #!/bin/bash
> cd /
> /path/to/program </dev/null >/dev/null 2>/dev/null &
> disown

Thanks for the quote from the disown manual. I still can't work out,
however, the difference between what you've suggested here and thye use
of setsid. Nor do i understand what disown would achieve (which is
perhaps the word I should have used) if I've used nohup.

Sorry if I'm being a bit dense,

 All the best,
Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list