diff options
Diffstat (limited to 'misc/pcilib_api.service.in')
-rw-r--r-- | misc/pcilib_api.service.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/pcilib_api.service.in b/misc/pcilib_api.service.in new file mode 100644 index 0000000..291a3e0 --- /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_PY_SERVER_INSTALL_DIR}/pcilib_api_server.py -d $API_SERVER_DEVICE -m $API_SERVER_MODEL + +[Install] +WantedBy=multi-user.target + + + |