From cc6073001486dbe93fa80b00ab91a3c605001356 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Wed, 14 Jun 2023 17:59:53 -0500 Subject: [PATCH] added useful systemd units --- aur-server.service | 13 +++++++++++++ glances.service | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 aur-server.service create mode 100644 glances.service diff --git a/aur-server.service b/aur-server.service new file mode 100644 index 0000000..c55f51c --- /dev/null +++ b/aur-server.service @@ -0,0 +1,13 @@ +# /etc/systemd/system/minecraft-server.service +[Unit] +Description=Darkhttpd server to stand up personal aur build server +After=network.target + +[Service] +WorkingDirectory=/home/ez/Aur +ExecStart=darkhttpd /home/ez/Aur --port 9139 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/glances.service b/glances.service new file mode 100644 index 0000000..3a1e351 --- /dev/null +++ b/glances.service @@ -0,0 +1,11 @@ +[Unit] +Description=Glances +After=network.target + +[Service] +ExecStart=/usr/bin/glances -w --fahrenheit +Restart=on-abort +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target