home bbs files messages ]

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

   alt.os.linux.gentoo      Stupid OS you gotta compile EVERYTHING      17,684 messages   

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

   Message 15,884 of 17,684   
   Nikos Chantziaras to All   
   Starting a server through cron   
   05 Nov 07 22:59:42   
   
   From: realnc@arcor.de   
      
   Hello group.   
      
   What's the best way to start a server program that runs in the   
   background at system boot from a normal (non-root) user account on our   
   Gentoo server?   
      
   Right now, my crontab looks like this:   
      
      MAILTO=""   
      @reboot foo -d   
      @reboot bar   
      
   Couple of notes: "foo" supports the -d option which means "run as   
   daemon" (ventrilo_srv for example has this).  "bar" does not support   
   such option.  If I would want to start it by hand from the shell, I   
   would probably do:   
      
      bar &   
      
   or:   
      
      screen bar   
      
   (and then detach).   
      
   What's the best way to start those with cron, and are there any   
   implications?  Is it better to use "&" in the crontab?   
      
   --- 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