From 5f2258123360b2fd74b643e9e0096b61565fffd9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 4 May 2025 18:20:16 +0200 Subject: Add simple install scripts --- MatrixAntiDmSpam@.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 MatrixAntiDmSpam@.service (limited to 'MatrixAntiDmSpam@.service') diff --git a/MatrixAntiDmSpam@.service b/MatrixAntiDmSpam@.service new file mode 100644 index 0000000..490547f --- /dev/null +++ b/MatrixAntiDmSpam@.service @@ -0,0 +1,15 @@ +# User service +[Unit] +Description=Matrix Anti DM Spam - ~/.config/MatrixAntiDmSpam/appsettings.%i.json +After=network.target + +[Service] +Type=simple +WorkingDirectory=%h/.config/MatrixAntiDmSpam +Environment=DOTNET_ENVIRONMENT=%i +ExecStart=/usr/bin/env dotnet /opt/MatrixAntiDmSpam/MatrixAntiDmSpam.dll +CPUSchedulingPolicy=idle +IOSchedulingClass=3 + +[Install] +WantedBy=default.target \ No newline at end of file -- cgit 1.5.1