Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
--- /dev/null
+#!/bin/bash
+
+WORK_DIR="$(dirname "$(readlink -f "$0")")"
+VENV="${WORK_DIR}/venv/bin/activate"
+
+source "${VENV}"
+
+pdudaemon --journal --dbfile="${WORK_DIR}/pdudaemon.db" --conf="${WORK_DIR}/pdudaemon.conf"
--- /dev/null
+{
+ "daemon": {
+ "hostname": "0.0.0.0",
+ "port": 16421,
+ "dbname": "pdudaemon",
+ "logging_level": "DEBUG"
+ },
+ "pdus": {
+ "pdu01.internal.efficios.com": {
+ "driver": "apc7932",
+ "username": "lava",
+ "password": "lava"
+ },
+ "carrier-armhf.internal.efficios.com": {
+ "driver": "consoleserver"
+ }
+ }
+}
--- /dev/null
+[Unit]
+Description=Control and Queueing daemon for PDUs
+
+[Service]
+ExecStart=/bin/bash /home/lava/pdudaemon_service/daemon.sh
+Type=simple
+User=lava
+Restart=on-abnormal
+
+[Install]
+WantedBy=multi-user.target