diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/pcilib.sysconfig.in | 12 | ||||
-rw-r--r-- | misc/pcilib_api.service.in | 15 | ||||
-rw-r--r-- | misc/pcilib_html.service.in | 14 |
3 files changed, 41 insertions, 0 deletions
diff --git a/misc/pcilib.sysconfig.in b/misc/pcilib.sysconfig.in new file mode 100644 index 0000000..65edeb3 --- /dev/null +++ b/misc/pcilib.sysconfig.in @@ -0,0 +1,12 @@ +# Common parameters +SERVER_DEVICE="/dev/fpga0" +SERVER_MODEL="test" + +# API server parameters +API_SERVER_PORT=9000 + +# HTML server parameters +HTML_SERVER_PORT=5000 + +#Scripts directory +PCILIB_SCRIPTS_DIR="${PCILIB_SERVER_DIR}/scripts" diff --git a/misc/pcilib_api.service.in b/misc/pcilib_api.service.in new file mode 100644 index 0000000..297772b --- /dev/null +++ b/misc/pcilib_api.service.in @@ -0,0 +1,15 @@ +[Unit] +Description=Pcilib Python api server +Wants=network.target nss-lookup.target +After=network.target nss-lookup.target + +[Service] +Type=simple +EnvironmentFile=/etc/sysconfig/pcilib +ExecStart=${PYTHON_EXECUTABLE} ${PCILIB_SERVER_DIR}/pcilib_api_server.py -d SERVER_DEVICE -m $SERVER_MODEL -p $API_SERVER_PORT + +[Install] +WantedBy=multi-user.target + + + diff --git a/misc/pcilib_html.service.in b/misc/pcilib_html.service.in new file mode 100644 index 0000000..7f03e77 --- /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_SERVER_DIR}/pcilib_html_server.py -d $SERVER_DEVICE -m $SERVER_MODEL -p $HTML_SERVER_PORT -e --api-server-port $API_SERVER_PORT + +[Install] +WantedBy=multi-user.target |