summarylogtreecommitdiffstats
path: root/service.patch
blob: 85072465361b1ec5984a741dac9f27cb0d1dc89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ArchiSteamFarm@.service.org	2021-11-01 14:32:25.829188085 +0100
+++ ArchiSteamFarm@.service	2021-11-03 09:57:45.805924189 +0100
@@ -3,7 +3,7 @@
 
 [Service]
 EnvironmentFile=-/etc/asf/%i
-ExecStart=/home/%i/ArchiSteamFarm/ArchiSteamFarm --no-restart --process-required --service --system-required
+ExecStart=/usr/bin/dotnet /usr/lib/asf/ArchiSteamFarm.dll --no-restart --process-required --service --system-required
 Restart=on-success
 RestartSec=5s
 SyslogIdentifier=asf-%i
@@ -24,7 +24,8 @@
 ProtectKernelTunables=yes
 ProtectProc=invisible
 ProtectSystem=strict
-ReadWritePaths=/home/%i/ArchiSteamFarm /tmp
+ReadWritePaths=%h /tmp
+StateDirectory=%i
 RemoveIPC=yes
 RestrictAddressFamilies=AF_INET AF_INET6
 RestrictNamespaces=yes