Got it working now. I had the code inserted in /etc/profiles and that was the problem. I now instead inserted the code to ~/.bashrc file.
/Mattias
----- Ursprungligt meddelande ----- Från: "Morten Brekkevold" morten.brekkevold@uninett.no Till: "Mattias Söderholm" mattias.soderholm@malax.fi Kopia: "nav-users" nav-users@uninett.no Skickat: torsdag, 10 sep 2015 11:08:41 Ämne: Re: Problem starting some services on NAV 4.3.1
On Mon, 7 Sep 2015 07:43:31 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
Thank you for the information, I found the problem but do not know how to fix it. The problem was some errors with bash_completion when example ipdevpoll starts. I disabled bash_completion for now (also uninstalled it) and it's working now.
The problem seems to be: ipdevpoll() { su - ${user} -c "${IPDEVPOLLD} ${OPTIONS}" }
Or anywhere su command is used in the starting scripts when bash_completion is enabled!
I'm not even sure how to reproduce this. I have bash-completion installed and enabled (though the default method of enabling it should enable it only for interactive shells), but everything still works out-of-the-box for me.
-- Morten Brekkevold UNINETT