Meshlium MQTT client never self-start

All related to the Kernel, packages system and libraries
mikewolfen
Posts: 12
Joined: Thu Jan 28, 2016 10:39 am

Meshlium MQTT client never self-start

Post by mikewolfen » Mon Jul 04, 2016 1:56 pm

Hi Libelium,

after some power supply blackout I figured out that Meshlium MQTT client never self-start if it was running before the power outage event.
It seems that the client can be started only by human intervention on Manager System.
This could be a problem if the outage is lately detected because some data is not forwared to MQTT subscribers.

Best regards,
Michele Lupano

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Meshlium MQTT client never self-start

Post by libelium-dev » Tue Jul 05, 2016 8:39 am

Hi Michele,

We are working for offering the permanent start/stop of cloud connectors. This feature will be available in future Meshlium releases. In the meantime you can program the MQTTPlugin to start at bootime adding the line:

/bin/MQTTPHPSyncD.sh start &

before the last line ("exit 0") in the file "/etc/rc.local".

Best Regards

julian
Posts: 16
Joined: Thu May 05, 2016 2:41 am

Re: Meshlium MQTT client never self-start

Post by julian » Tue Aug 02, 2016 6:34 am

I has the same question for the Bluemix service
¿How ca I make it start automatically?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Meshlium MQTT client never self-start

Post by libelium-dev » Tue Aug 02, 2016 8:10 am

Hi julian,

Please edit /etc/rc.local file:

Code: Select all

nano /etc/rc.local
then add this line:

Code: Select all

/bin/CloudBluemixMQTTD.sh start &
before the last line ("exit 0") in the file "/etc/rc.local"

Regards

julian
Posts: 16
Joined: Thu May 05, 2016 2:41 am

Re: Meshlium MQTT client never self-start

Post by julian » Thu Aug 11, 2016 7:31 am

I am trying to modify /etc/rc.local and the last 3 lines would look like this

Code: Select all

echo "saliendo rc.local"
/bin/AmazonCloudD.sh start &

exit 0

but I'm having the following response from nano:
[ Error writing /etc/rc.local: Read-only file system ]
Ps: I am moving to aws.

julian
Posts: 16
Joined: Thu May 05, 2016 2:41 am

Re: Meshlium MQTT client never self-start

Post by julian » Thu Aug 11, 2016 7:43 am

as I can see rc.local permissions is -rwxrwx---
Do I need to chmod before edit it?

Thank you in adavance

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Meshlium MQTT client never self-start

Post by libelium-dev » Thu Aug 11, 2016 8:35 am

Hi julian,

You have to execute "remountrw" before, in order to put the partition in read&write mode.

Best regards,

julian
Posts: 16
Joined: Thu May 05, 2016 2:41 am

Re: Meshlium MQTT client never self-start

Post by julian » Thu Aug 11, 2016 8:57 pm

Done, it works!

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Meshlium MQTT client never self-start

Post by libelium-dev » Fri Aug 12, 2016 8:22 am

Glad to hear that, Julian.

Best regards,

dcordioli
Posts: 3
Joined: Tue Jun 21, 2016 4:54 pm

Re: Meshlium MQTT client never self-start

Post by dcordioli » Wed Aug 31, 2016 9:43 am

Hi all,

I would like to accomplish the same as above (i.e., automatic start on reboot) for the "Microsoft Azure Event hubs" cloud connector.

Can you please tell me the name of the specific script to add to /etc/rc.local?

Thanks in advance.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest