[rabbitmq-discuss] rabbitmq-server init script

paul paul.theodoropoulos at gmail.com
Thu Mar 17 18:56:17 GMT 2011



On Mar 17, 3:29 am, Alexandru Scvorţov <alexan... at rabbitmq.com> wrote:
> I'm having trouble reproducing this.
>
> On a fresh Centos install, the RPM does what it's supposed to do (and what
> you say it does).  In /var/log/rabbitmq, there are some log files owned by
> root and some owned by rabbitmq, but the root files are only ever accessed
> by the init script, and that should be fine.
>
> Is this what you're seeing?
>
>   Starting rabbitmq-server: /etc/init.d/rabbitmq-server: line 43:
>   /var/log/rabbitmq/startup_log: Permission denied
>   TIMEOUT - check /var/log//rabbitmq/startup_{log,err}
>   rabbitmq_server.

i believe that's the error, yeah.


> If so, are you starting the service as a non-root user?

no, it just starts from the init script run as user root - the only
changes i made to the init script are as described in my previous
message. but after it starts up, the processes are running under
rabbitmq ownership -


[root at app06 rabbitmq]# ps -ecf|grep rabb
rabbitmq  2545     1 TS   24 Mar14 ?        00:00:00 /usr/local/lib/
erlang/erts-5.8.2/bin/epmd -daemon
rabbitmq  2556     1 TS   21 Mar14 ?        00:02:56 /usr/local/lib/
erlang/erts-5.8.2/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /
usr/local/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -
noshell -noinput -sname rabbit at app06 -boot /var/lib/rabbitmq/mnesia/
rabbit at app06-plugins-expand/rabbit -kernel inet_default_listen_options
[{nodelay,true}] -kernel inet_default_connect_options [{nodelay,true}]
-sasl errlog_type error -kernel error_logger {file,"/var/log/rabbitmq/
rabbit at app06.log"} -sasl sasl_error_logger {file,"/var/log/rabbitmq/
rabbit at app06-sasl.log"} -os_mon start_cpu_sup true -os_mon
start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/
rabbitmq/mnesia/rabbit at app06" -noshell -noinput
rabbitmq  2625  2556 TS   24 Mar14 ?        00:00:00 inet_gethost 4
rabbitmq  2626  2625 TS   21 Mar14 ?        00:00:00 inet_gethost 4
rabbitmq  2627  2556 TS   21 Mar14 ?        00:00:00 /usr/local/lib/
erlang/lib/os_mon-2.2.5/priv/bin/cpu_sup


without the change in ownership of the logfiles, it starts
successfully (seemingly) but only a couple of procs are left running
(i don't remember which, sorry - i think just the first one listed
above)


More information about the rabbitmq-discuss mailing list