[Eisfair] sl?==?utf-8?Q?ims zieht 100% Prozessorla?==?utf-8?Q?st

Rene Hanke Rene.Hanke at gmx.net
Mo Aug 15 11:05:58 CEST 2016


Hallo Marcus!
Marcus Roeckrath schrieb am Mo, 15 August 2016 10:17
> Hallo Rene,
> [...]Lösch doch einfach in /etc/init.d/slims "--daemon" aus der
> Startzeile.
> [...]


Dachte ich zuerst auch dran, aber da der Aufruf von der Kommandozeile
dann diese "blockierte", wollte ich kein Risiko eingehen.

Reinstalliere aber sowieso gerade erstmal den ganzen eis, da ich endlich
Zeit dafür habe. Meine 2. Platte kam ja verspätet und das System soll
diesmal ein RAID-1 beinhalten. Zzgl. regelmäßiger Backups, versteht
sich.

Sobald der fertig gesynct hat (kann noch dauern), werde ich also mal
weiter basteln, zumal Michael Herger mir einfach nicht glauben will,
dass 

Michael Herger
> eis # diff -u slims /etc/init.d/slims 
> --- slims	2016-08-12 14:03:59.195996466 +0200
> +++ /etc/init.d/slims	2016-08-12 17:12:33.987999860 +0200
> @@ -100,7 +100,7 @@
>      if [ "${START_SLIMS}" = "yes" ]
>      then
>          # set variable to an empty string if not set
> -        if [ "${SLIMS_OPTIONS+1}" = "" ]
> +        if [ "${SLIMS_OPTIONS+1}" = "1" ]
>          then
>              SLIMS_OPTIONS=''
>          fi
> @@ -167,7 +167,8 @@
>              fi
>  
>              cd ${ssdir}/
> -            su - slims -s /bin/sh -c "export LANG=${def_charset};
> \
> +
> +su - slims -s /bin/sh -c "export LANG=${def_charset}; \
>                                        ${ssdir}/slimserver.pl
> --daemon --logdir=${logdir} --prefsdir=${prefsdir}     \
>                                            ${prefsoption}
> --pidfile=${pidfile} --logfile=${logfile} ${SLIMS_OPTIONS} \
>                                            --noimage --novideo" >>
> ${startlogfile} 2>> ${startlogfile}
> 
> 
> Remove all spaces in front of the "su" command and insert an empty
> line before it. Yes, one or the other wouldn't be enough. [...]


Bei mir nicht die Lösung ist.


@Juergen:  Es muss wirklich

if [ "${SLIMS_OPTIONS+1}" = "" ]
heißen und nicht

if [ "${SLIMS_OPTIONS+1}" = "1" ]?

Das sah Michael gleich am Anfang als fehlerhaft an (aber war bei mir eh
nicht die Ursache für die 100% CPU).


Lieber Gruß

René





Mehr Informationen über die Mailingliste Eisfair