Services are files consumed by
systemctl
.
Prior to the installation of the services, all target/release/
bins must be present in /usr/bin/
, a symlink is fine:
$ cd target/release
$ for i in {blinds,lights,hub-event-aggregator,hub-event-automator,lights,nilan,ui,victron,weather,kia,alfen} ; do sudo ln -s "$(pwd)/$i" /usr/bin/$i; done
They must be installed in /etc/systemd/system
.
To check a service is active, or to check its status:
$ systemctl is-active <name>
$ systemctl status <name>
To start a service:
$ sudo systemctl start <name>
To stop a service:
$ sudo systemctl stop <name>
To allow the service to start at boot time, run:
$ sudo systemctl enable <name>