[darkice] Re: watch darkice errors and restart if necessarily

  • From: "Niels Dettenbach (Syndicat IT&Internet)" <nd@xxxxxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Mon, 16 Jan 2012 21:38:22 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



JoergSorge <joergsorge@xxxxxxxxx> schrieb:

Many thanks for your message.

>In Niels' rc-script I added on top:
>
>logfile_archive="/home/xy/darkice-xy-$(date +'%y-%m-%d-%H-%M-%S').log"

This is not typical for logging under unix as such things usually are done by 
newsyslog or logrotate - on a opeating system or distribution level.

This change will break this. I know that some softwares goes their own way such 
wise but this breaks typical logrotate / newsyslog behaviours from my 
experience. If someone decides to have logfiles i.e. daywise he can configure 
that within his log rotating.

I'm personally prefer to do the things "as usual as possible" - so i would not 
do this, but may be others have another view onto this?


>and in the start-case:

>if [ -f $logfile ]
>then
>        echo -e "\nsave $logfile to $logfile_archive"
>       cp $logfile $logfile_archive
>       rm $logfile
>fi
>
>this will write a new logfile on darkice-start

hmm,
why? Means: what is the advantage if the darkice start script rotates the logs 
byself?

I've seen this i.e. with servers like X while most other typical servers / 
daemons don't did that (btw: the typical name convention is .old then).

And if the rc script does such rotating byself then this makes logrotating by 
the system more difficult too - so it should give us a significant advantage to 
do this this way.

Any other comments about this ideas here too?


Niels.
- --
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iIEEAREIAEEFAk8Uirw6HE5pZWxzIERldHRlbmJhY2ggKFN5bmRpY2F0IElUJklu
dGVybmV0KSA8bmRAc3luZGljYXQuY29tPgAKCRBU3ERlZRyiDaOnAJ9RN5HHsnE0
oDBT+tHr7c7dIxiMlACfUr2l97G5XvphAW8MLFut/pViKXk=
=wqF5
-----END PGP SIGNATURE-----


Other related posts: