about summary refs log tree commit diff
path: root/MatrixAntiDmSpam@.service
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-04 18:20:16 +0200
committerRory& <root@rory.gay>2025-05-04 18:20:16 +0200
commit5f2258123360b2fd74b643e9e0096b61565fffd9 (patch)
tree7225354243c0ab6d50b252d0c6626936791ce68b /MatrixAntiDmSpam@.service
parentAdd support for ignoring users, change internal API (diff)
downloadMatrixAntiDmSpam-5f2258123360b2fd74b643e9e0096b61565fffd9.tar.xz
Add simple install scripts
Diffstat (limited to 'MatrixAntiDmSpam@.service')
-rw-r--r--MatrixAntiDmSpam@.service15
1 files changed, 15 insertions, 0 deletions
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