Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Active mosquitto service prevents reboot on Raspberry Pi

Hi Dan,

My understanding is that upstart will stop processes by first sending
a SIGTERM (which mosquitto handles by shutting down gracefully) then
if the process is still running after 5 seconds, it calls SIGKILL,
which of course can't be handled.

So I'm a bit surprised that this would happen. The only PI I have easy
access to at the moment is running Jessie on systemd so it's a bit
tricky for me to test. Are there any other diagnostics that you can
provide?

Cheers,

Roger


On Sun, Jan 31, 2016 at 3:58 PM, Daniel Towner <dwtowner@xxxxxxxxxxxxxx> wrote:
> Hi Louis,
>
> I use upstart. Not sure what file you mean me to paste. It's a default
> install of mosquitto (apt-get install mosquitto) which I haven't tweaked in
> any way at all, so all files in the package are unaltered.
>
> thanks,
>
> dan.
>
> On Sat, Jan 30, 2016 at 11:46 PM, Louis T. Getterman IV
> <LTGIV@xxxxxxxxxxxxx> wrote:
>>
>> Hi Daniel,
>>
>> How are you starting up the service?  init.d?  upstart?  systemd?  Can you
>> pastebin a copy of what your file looks like?  It sounds like it’s not
>> receiving a stop signal.
>>
>> -Louis
>>
>> > On Jan 30, 2016, at 3:56 PM, Daniel Towner <dwtowner@xxxxxxxxxxxxxx>
>> > wrote:
>> >
>> > Hi,
>> >
>> > I am running Mosquitto 1.4.7 on a Raspberry Pi with Wheezy. If I
>> > explicitly reboot the machine (sudo reboot), then the machines shuts down
>> > most services but not mosquitto, and the Pi doesn't reboot either. If I
>> > issue a second reboot command then that time the machine does reboot
>> > properly.
>> >
>> > If I explicitly stop the mosquitto service first (sudo service mosquitto
>> > stop) then the reboot command will work properly.
>> >
>> > So, to get a reboot to happen with mosquitto running I either need to
>> > issue two reboots in succession, or stop mosquitto and then reboot.
>> >
>> > What is it about mosquitto that is preventing the reboot, and how can I
>> > fix it so that a plain reboot does as expected?
>> >
>> > thanks
>> >
>> > dan.
>> > _______________________________________________
>> > mosquitto-dev mailing list
>> > mosquitto-dev@xxxxxxxxxxx
>> > To change your delivery options, retrieve your password, or unsubscribe
>> > from this list, visit
>> > https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
>>
>> _______________________________________________
>> mosquitto-dev mailing list
>> mosquitto-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
>
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top