From 327b71b05b60a03e56fad618b51fbccd06c3776d Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 4 Mar 2016 12:33:44 +0100 Subject: Add python servers instalation step. Add systemd config files generation for python servers. --- misc/pcilib_html.service.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misc/pcilib_html.service.in (limited to 'misc/pcilib_html.service.in') diff --git a/misc/pcilib_html.service.in b/misc/pcilib_html.service.in new file mode 100644 index 0000000..634d9c7 --- /dev/null +++ b/misc/pcilib_html.service.in @@ -0,0 +1,14 @@ +[Unit] +Description=Pcilib Python html server +Wants=network.target nss-lookup.target +After=network.target nss-lookup.target +Requires=pcilib_api.service +After=pcilib_api.service + +[Service] +Type=simple +EnvironmentFile=/etc/sysconfig/pcilib +ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_PY_SERVER_INSTALL_DIR}/pcilib_html_server.py -p $HTML_SERVER_PORT -e + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3