XPost: uk.comp.os.linux   
   From: usenet.16@scottsonline.org.uk.invalid   
      
   On 10/09/2025 09:42, Dan Purgert wrote:   
   > On 2025-09-10, Mike Scott wrote:   
   >> On 04/09/2025 08:26, Richard Kettlewell wrote:   
   >>> Mike Scott> ottsonline.org.uk.invalid> writes:   
   >>>> I've been using a program 'daemon' on freebsd   
   >>>> (eg   
   >>>> man.freebsd.org/cgi/man.cgi?query=daemon&sektion=8&manpath=   
   reeBSD+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?   
   >> [...]   
   >> Have I missed something?   
   >   
   > logrotate(8) ?   
   >   
   >   
   Thanks for the reply, but no. That assumes the existence of the   
   mechanism missing AFAICS from this daemon.   
      
   And to answer ldo, this is for a web daemon that writes its own private   
   log file that needs archival copies kept; syslog is not appropriate.   
   I've been doing that using mv and sending the BSD daemon a sighup;   
   migration is being something of a chore.   
      
   Looks like I'll have to see about patching the daemon source code.   
      
      
      
   --   
   Mike Scott   
   Harlow, England   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|