[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running bash using su -c causes 100% cpu usage on one core
From: |
Greg Wooledge |
Subject: |
Re: Running bash using su -c causes 100% cpu usage on one core |
Date: |
Mon, 4 Jan 2016 13:10:40 -0500 |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Jan 04, 2016 at 07:03:39PM +0100, Marcus Wichelmannn wrote:
> Am Mo, 4. Jan, 2016 um 3:32 schrieb Chet Ramey <chet.ramey@case.edu>:
> >What is /usr/bin/cli? It's the program that is using the CPU.
>
> Afaik it's a symlink to /usr/bin/mono.
>
> I solved my issue by replacing the line in /etc/rc.local by:
>
> su cubie -c "screen -S Haussteuerung -d -m
> /home/cubie/Haussteuerung/Haussteuerung/run.sh"
>
> But this is no fix of this bug for sure.
If mono (aka cli) runs away eating all CPU when it's launched without
a terminal, then this isn't a bash bug, but rather a mono bug. And
your workaround is a good one.
Re: Running bash using su -c causes 100% cpu usage on one core, Chet Ramey, 2016/01/04