home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.ubuntu      I preferred Xubuntu, seemed a bit faster      134,474 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 134,354 of 134,474   
   Mike Scott to Richard Kettlewell   
   Re: daemon program?   
   10 Sep 25 09:01:15   
   
   XPost: uk.comp.os.linux   
   From: usenet.16@scottsonline.org.uk.invalid   
      
   On 04/09/2025 08:26, Richard Kettlewell wrote:   
   > Mike Scott writes:   
   >> I've been using a program 'daemon' on freebsd   
   >> (eg   
   >> man.freebsd.org/cgi/man.cgi?query=daemon&sektion=8&manpath=Fr   
   eBSD+14.3-RELEASE+and+Ports)   
   >>   
   >> which will run arbitrary programs as daemons, handling all the   
   >> necessary "house-keeping" for them.   
   >>   
   >> I can't find a ready-to-roll linux version - is there one please?   
   > If you want an (almost) identical interface then in Debian (and   
   > presumably therefore also Ubuntu), there’s a command of the same name   
   > and similar behavior:   
   >   
   > https://manpages.debian.org/trixie/daemon/daemon.1.en.html   
      
   Sorry, back again.   
      
   I've been playing with this and there seems to be an important feature   
   missing on linux that's in the BSD version: how to do logfile rotation?   
      
   BSD offers:   
        -H      Close output_file and re-open it when signal SIGHUP is   
   received,   
                 for interoperability with newsyslog(1) and similar log   
   rotation /   
                 archival mechanisms.  If -o is not specified, this flag is   
                 ignored.   
      
      
   But the linux version seems to just keep writing to the same file   
   whatever I try. The only workaround seems to be to kill both the daemon   
   and its child, move the log file, and restart them. Seems a bit clumsy.   
      
   Have I missed something?   
      
   Thanks.   
      
      
      
   --   
   Mike Scott   
   Harlow, England   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca