[darkice] Re: Start on boot

  • From: Niels Dettenbach <nd@xxxxxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Tue, 21 Dec 2010 09:20:37 +0100

Am Montag 20 Dezember 2010, 22:24:21 schrieb DarkIce:
> > Does anyone have a reliable method of starting Darkice on boot?
> 
> create a BASH script or just call darkice direct that you call via cron
> job  for root

There is a official and generic init script within the darkice sources (file: 
rc.darkice ).

 - Copy this to your init scripts directory - i.e.:
        cp ./rc.darkice /etc/init.d/darkice

 - make the script executable:
        chmod +x /etc/init.d/darkice 

 - adapt pathes within the script (if differ from your system / installation)

 - depending from your system you have to enable darkice on boot as any other 
service on that system.

The script allows start and stop of the darkice process. Additional it allows 
to watch over the darkice process and restart it if down.


Usage: /etc/init.d/darkice {start|stop|restart|status|restartifdown} 

You may add a cron script i.e. each 5 minutes as a watchdog over your darkice:

*/5 * * * *     root    /etc/init.d/darkice restartifdown


Any further ideas, bug reports or improvements are welcome.


cheers,


Niels.

-- 

---

  Niels Dettenbach
  ---
  Syndicat IT&Internet
  http://www.syndicat.com
  T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
  ---
  Kryptoinfo: 
  PGP public key ID 651CA20D
  Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
  https://syndicat.com/pub_key.asc
  ---

Other related posts: