Hello community,
I have a Pi B+ running with Raspbian Jessie. I installed PiMatic via tutorial (http://siio.de/folge-3-pimatic-raspberry-pi-zentrale/) and its running great, if I start it via “sudo node pimatic.js”
Only starting as service doesn’t work. Independent wether I’m root or user pi.
I also tried to install pimatic as root. Same behavior. The Raspbian installation is completely new.
root@pi-one:/home/pi# service pimatic status
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic)
Active: failed (Result: exit-code) since Sa 2015-12-05 15:02:43 CET; 11s ago
Process: 3430 ExecStart=/etc/init.d/pimatic start (code=exited, status=1/FAILURE)
Dez 05 15:02:43 pi-one node[3431]: No AX.25 port data configured
Dez 05 15:02:43 pi-one systemd[1]: pimatic.service: control process exited, code=exited status=1
Dez 05 15:02:43 pi-one systemd[1]: Failed to start LSB: pimatic service.
Dez 05 15:02:43 pi-one systemd[1]: Unit pimatic.service entered failed state.
The init.d/pimatic looks like the following:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/node/bin:/home/pi/pimatic-app/node_modules/pimatic
if [ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ] || [ "$1" = "status" ]
then
/home/pi/pimatic-app/node_modules/pimatic/pimatic.js $1
exit "$?"
else
echo "Usage: service pimatic {start|stop|status|restart}" >&2
exit 3
fi
Could anybody help?