[zeromq-dev] Running a service (with zeromq) on RedHat 7

Pieter Hintjens ph at imatix.com
Tue Mar 24 11:23:34 CET 2015


It's impossible to help you unless you provide a minimal test case
that fails. (I.e. source code that crashes).

On Tue, Mar 24, 2015 at 10:25 AM, Alan Ward <alan.ward at btinternet.com> wrote:
> Hi,
>
>
>
> I have a multi-process service that uses zeromq (and PostgreSQL).
>
>
>
> I have successfully ported it to RedHat 7 (from Ubuntu).
>
>
>
> I am now trying to get the service to start automatically when the server
> starts.
>
> I have written a  unit file (xxxx.service) and  installed it in
> /usr/lib/systemd/system.
>
>
>
> If I start it manually using systemctl start xxxx, it works fine.
>
>
>
> But if I restart the server the service crashes in one process with:
>
> src/zframe.c:174: zframe_data: Assertion `self' failed.
>
>
>
> And the another three processes with:
>
> src/zmsg.c:225: zmsg_pop: Assertion `self' failed.
>
>
>
> I guess I have a dependency missing in the Unit section of the .service file
>
>
>
> I currently have:
>
>
>
> After=network.target
>
> After=syslog.target
>
> After=postgresql-9.3.target
>
>
>
> Can anyone tell me what I’m missing?
>
>
>
> Thanks,
>
> Alan
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list