Skip to content

Instantly share code, notes, and snippets.

@Eihen
Last active January 18, 2022 12:54
Show Gist options
  • Save Eihen/5d1dc05296c3afdb3ce6b772033b3421 to your computer and use it in GitHub Desktop.
Save Eihen/5d1dc05296c3afdb3ce6b772033b3421 to your computer and use it in GitHub Desktop.
Sample systemd unit service for ArchSteamFarm
[Unit]
Description=ArchSteamFarm
After=network-online.target
[Service]
Type=simple
User={user}
Group={group}
Restart=always
RestartSec=15s
ExecStart={ASF path}
[Install]
WantedBy=multi-user.target
@Eihen
Copy link
Author

Eihen commented Aug 29, 2018

Instructions

  • Change {user} and {group} to the ones you want ASF to run as
  • Change {ASF path} to the absolute path of the ASF executable on your system, note that the user and/or group entered in the previous step must have the proper permissions for all the ASF files
  • Move this to the systemd system units folder (usually /etc/systemd/system)
  • Start and enable it running systemctl enable asf --now with root privileges, this way it will be restarted at boot

Status and Output

  • To check if ASF is running use systemctl status asf
  • To see ASF output in real-time use journalctl -u asf -f
  • To see all of ASF output up to the current moment use journalctl -u asf

Note that all the above commads need to be run with root privileges (root user or sudo).

If you find any problems or need help to make it work let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment