From 77cea0bcc06681ae77682f3fc1a4b3e99b361013 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Tue, 17 Dec 2024 10:16:32 +0100 Subject: [PATCH] Correct syntax and name --- hackertours.service | 13 +++++++++++++ hackertours.unit | 10 ---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 hackertours.service delete mode 100644 hackertours.unit diff --git a/hackertours.service b/hackertours.service new file mode 100644 index 0000000..8c4d774 --- /dev/null +++ b/hackertours.service @@ -0,0 +1,13 @@ +[Unit] +Description=Run foobazdmx controller in Hackertours config + +[Service] +Type=simple +ExecStart=poetry run python ./foobaz.py -a 127.0.0.1 -r hackertours -A hackertours -C 0,255,32 +WorkingDirectory=%h/working/foobazdmx +Restart=on-failure + +[Install] +WantedBy=default.target + +# link or copy me to ~/.config/systemd/user diff --git a/hackertours.unit b/hackertours.unit deleted file mode 100644 index b986db1..0000000 --- a/hackertours.unit +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Run foobazdmx controller in Hackertours config - -[Service] -Type=simple -ExecStart=poetry python ./foobaz.py -a 127.0.0.1 -r hackertours -A hackertours -C 0,255,32 -WorkingDirectory=~/working/foobazdmx - -[Install] -WantedBy=default.target