LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   MES5 in runlevel 3 stuck after starting mavisd. Can't change back to runlevel 5 (http://www.linuxquestions.org/questions/linux-enterprise-47/mes5-in-runlevel-3-stuck-after-starting-mavisd-cant-change-back-to-runlevel-5-a-4175444802/)

JnPson 01-09-2013 06:50 AM

MES5 in runlevel 3 stuck after starting mavisd. Can't change back to runlevel 5
 
I'm using MES5 and I changed runlevel in inittab from 5 to 3. Now MES is stuck after starting amavisd, and I can't login. I can change runlevel via SSH, but I'm curious why this is happening?

/Jon

unSpawn 01-09-2013 07:27 AM

Does syslog or wherever Amavisd logs to show any clues?

JnPson 01-16-2013 04:24 AM

I'm sorry it took me so long to answer you unSpawn.
I cannot read anything from the logs due to lack of knowledge. But I saw this when it ran with init 3:
Failed to register Razor. Try to run as root, su -amavis -s /bin/sh -c 'razor-admin -Register && razor-admin-discover'

I tried to run it but without success.

/Jon

unSpawn 01-16-2013 05:58 PM

Quote:

Originally Posted by JnPson (Post 4871190)
I cannot read anything from the logs due to lack of knowledge.

See http://logreporters.sourceforge.net/ (and Logwatch): should make reporting and interpreting what's reported easier.


Quote:

Originally Posted by JnPson (Post 4871190)
su -amavis -s /bin/sh -c 'razor-admin -Register && razor-admin-discover'

Case matters and AFAIK "-register" should be lowercase. Read 'man razor-admin' then try
Code:

su -amavis -s /bin/sh -c 'razor-admin -d -create' 2>&1 | tee /tmp/razorcreate.txt
su -amavis -s /bin/sh -c 'razor-admin -d -register' 2>&1 | tee -a /tmp/razorcreate.txt
su -amavis -s /bin/sh -c 'razor-admin -d -discover' 2>&1 | tee -a /tmp/razorcreate.txt

The file "/tmp/razorcreate.txt" then holds a record of stdout and stderr of all three commands, provided you noticed the "-a" switch using 'tee' ;-p


All times are GMT -5. The time now is 08:21 AM.