mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-14 23:50:41 +00:00
* Initial .NET 8 * Make it compile in release mode ignoring warnings for now * First round of improvements * Second round of improvements * Third round of improvements * Use new throws * Fix .NET Framework, YAY, thanks madness! Madness devs are awesome * Misc * Misc * AF_NETLINK might be required for some http calls No clue why * Fix service files Doesn't do what it should * Update CardsFarmer.cs * New improvements * Address feedback * Misc * Misc * Misc refactor * Misc
47 lines
1.2 KiB
Desktop File
47 lines
1.2 KiB
Desktop File
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/asf/%i
|
|
ExecStart=dotnet /home/%i/ArchiSteamFarm/ArchiSteamFarm.dll --no-restart --process-required --service --system-required
|
|
Restart=on-success
|
|
RestartSec=1s
|
|
SyslogIdentifier=asf-%i
|
|
User=%i
|
|
|
|
# ASF security hardening, all of the below entries are optional, but their existence improves security of your system
|
|
CapabilityBoundingSet=
|
|
DevicePolicy=closed
|
|
LockPersonality=yes
|
|
NoNewPrivileges=yes
|
|
PrivateDevices=yes
|
|
PrivateIPC=yes
|
|
PrivateMounts=yes
|
|
PrivateUsers=yes
|
|
ProcSubset=pid
|
|
ProtectClock=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=read-only
|
|
ProtectHostname=yes
|
|
ProtectKernelLogs=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectProc=invisible
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/home/%i/ArchiSteamFarm /tmp
|
|
RemoveIPC=yes
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
SecureBits=noroot-locked
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
SystemCallFilter=~@privileged
|
|
UMask=0077
|
|
|
|
[Unit]
|
|
After=network.target
|
|
Description=ArchiSteamFarm Service (on %I)
|
|
Documentation=https://github.com/JustArchiNET/ArchiSteamFarm/wiki
|