Skip to content

Instantly share code, notes, and snippets.

@Blakeinstein
Last active May 24, 2021 21:28
Show Gist options
  • Save Blakeinstein/84eb5062d9aa4274cde1c87d005e1976 to your computer and use it in GitHub Desktop.
Save Blakeinstein/84eb5062d9aa4274cde1c87d005e1976 to your computer and use it in GitHub Desktop.
Systemd service file for ASF

Systemd service config for ArchiSteamFarm

Allows ASF to run on boot.

Follow these steps to get it working

  1. Setup ASF according to their guide.
  2. Set ASF to run in headless mode by adding headless: true to ASF.json
  3. Download/Copy the file asf.service to /etc/systemd/system/
  4. Change the path for ArchiSteamFarm to point to your binary, the above expects ASF to be at /home/pi/asf/ArchiSteamFarm also change User=pi to the user you want to run asf as
  5. Reload the systemctl daemon to reflect the new service using
    sudo systemctl daemon-reload
  6. Enable the asf service
    sudo systemctl enable asf
  7. Start the service by using
    sudo systemctl start asf

Additional Notes

  • You can stop the service by using
    sudo systemctl stop asf
  • You can view logs by using
    sudo systemctl status asf
  • You should ideally set IPC to true in asf.config to be able to control ASF via the web tool
[Unit]
Description=FRP Client Service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=pi
ExecStart=/home/pi/asf/ArchiSteamFarm --server --process-required
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment