Skip to content

Instantly share code, notes, and snippets.

@akostadinov
Last active March 18, 2020 17:31
Show Gist options
  • Save akostadinov/a5acbb95c8142306f9c27597d16451db to your computer and use it in GitHub Desktop.
Save akostadinov/a5acbb95c8142306f9c27597d16451db to your computer and use it in GitHub Desktop.
fahclient.service
[Unit]
Description=FAHClient cruncher
After=syslog.target network.target
[Service]
Type=simple
User=fahclient
WorkingDirectory=/var/lib/fahclient
EnvironmentFile=-/etc/sysconfig/fahclient
# log will go fahclient home dir
ExecStart=/usr/bin/scl enable devtoolset-7 -- /usr/bin/FAHClient /etc/fahclient/config.xml --service --log-to-screen=false
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
@akostadinov
Copy link
Author

akostadinov commented Mar 18, 2020

This is for ROCm 3.1 installed on RHEL 7.7.
See storj.service about making this run as a user-service.

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