From 723b3f4b5d7d857fc750b9c0b7d0080d3895eb40 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 13 May 2025 21:41:22 +0200 Subject: [PATCH] Update README and add systemd service file for PCIe device management --- README.md | 2 +- phenix.service | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 phenix.service diff --git a/README.md b/README.md index 57f6bd9..55724ed 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# phenix +# Phenix Utility to restart PCIe devices when link is lost. \ No newline at end of file diff --git a/phenix.service b/phenix.service new file mode 100644 index 0000000..d9f979a --- /dev/null +++ b/phenix.service @@ -0,0 +1,10 @@ +[Unit] +Description=Auto restart PCIe devices when link is lost +After=network.target + +[Service] +ExecStart=/usr/bin/phenix +Restart=on-failure + +[Install] +WantedBy=multi-user.target \ No newline at end of file