Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.32 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.32 KB

Systemd unit files for all beehive server components

Download files if not already done:

cd ~
mkdir -p git
cd git
git clone https://github.com/waggle-sensor/beehive-server.git
cd ~/git/beehive-server/systemd/

At this point, we assume the program 'docker' exists in /bin/docker. If it does not, then a link to the actual docker must be created in its place. For example, if it is installed at '/usr/bin/docker', then use:

ln -s /usr/bin/docker /bin/docker

Enable docker.service if needed:

systemctl enable docker.service
systemctl start docker.service
systemctl status docker.service

Example for single unit:

cp beehive-cassandra.service /etc/systemd/system
systemctl enable beehive-cassandra.service
systemctl start beehive-cassandra.service
systemctl status beehive-cassandra.service

Deploy all unit files:

for service in *.service ; do
  echo "Deploy ${service}"
  rm -f /etc/systemd/system/${service}
  cp ${service} /etc/systemd/system
  systemctl enable ${service}
  systemctl start ${service}
  sleep 3
  systemctl status ${service}
done

See status of all beehive services:

systemctl -a | grep beehive-

Logging

For services that do not write log files, but print to stdout and stderr, use journald to see the logs:

journalctl -f -u beehive-web