Autostarting

On Raspian Stretch or newer releasers it is recommended to install the Systemd service template. For older systems you can alternatively install the Initd service wrapper. However, it is not recommended to install both at the same time!

Systemd Service Template

You need tp perform the follow steps to install the service template:

wget https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic.service
sudo cp pimatic.service /lib/systemd/system/
sudo chown root:root /lib/systemd/system/pimatic.service
sudo systemctl daemon-reload
sudo systemctl enable pimatic

It should now start with:

sudo systemctl restart pimatic

Alternatively you can also use the service command:

sudo service pimatic start

The log output is directed to: pimatic-app/pimatic-daemon.log

Deprecated: Initd Service Wrapper

On older systems you can alternatively the init.d service wrapper:

wget https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic-init-d
sudo cp pimatic-init-d /etc/init.d/pimatic
sudo chmod +x /etc/init.d/pimatic
sudo chown root:root /etc/init.d/pimatic
sudo update-rc.d pimatic defaults

It should now start with:

sudo service pimatic start

The log output is directed to: pimatic-app/pimatic-daemon.log