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