From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2300c4fb8b64d25f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-20 02:15:27 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!uknet!cf-cm!compu010.cf.ac.uk!scoanc From: scoanc@compu010.cf.ac.uk (Cormack Andrew) Subject: Thanks: problems starting daemons Message-ID: <1994Sep19.155620.1386@cm.cf.ac.uk> Sender: scoanc@compu010.cf.ac.uk (Cormack Andrew) Nntp-Posting-Host: compu010.athro.cf.ac.uk Reply-To: scoanc@cf.ac.uk Organization: University of Wales College of Cardiff, Cardiff, Wales, UK X-Newsreader: TIN [version 1.2 PL2] Date: Mon, 19 Sep 1994 15:56:18 +0000 Thanks to those who replied with helpful suggestions. The problem seemed to be that you can't just run a program from an init script by re-directing all its output channels and backgrounding it with &. The program itself needs to explicitly give up its controlling terminal (setsid()). While I was doing this I also made it fork itself and use syslog rather than fprintf(stderr,...). The program, and I, are now much happier :-) Andrew -- +-----------------------------------------------------------------+ | Andrew Cormack | email: cormack@cardiff.ac.uk | | Systems Programmer | snail: 40/41 Park Place, Cardiff | | University of Wales, Cardiff | | +-----------------------------------------------------------------+