I have a C code which I kept in systemd service for boot time start. After restart it started successfully, but after a while it got killed and again started successfully as the type set is forking. The error log

● mqtt_to_REST.service - TCUP MQTT to RESTful connector
   Loaded: loaded (/lib/systemd/system/mqtt_to_REST.service; enabled)
   Active: activating (auto-restart) (Result: timeout) since Wed 2015-04-08 12:19:18 UTC; 648ms ago
  Process: 289 ExecStart=/usr/bin/sim (code=killed, signal=TERM)

Apr 08 12:19:18 edison systemd[1]: Failed to start TCUP MQTT to RESTful connector.
Apr 08 12:19:18 edison systemd[1]: Unit mqtt_to_REST.service entered failed state.

The startup script :

Description=TCUP MQTT to RESTful connector

#ExecStart=/home/root/jsmn/example/sim /dev/null 2>&1
ExecReload=/bin/kill -HUP $MAINPID


So where is the problem actually happening?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.