Follow

Enabling Angelfish to Load on Startup using systemd

If you use Angelfish Software v2.4+, please use the new Help Center:
https://help.angelfishstats.com/helpdesk/?aa=200

 

For Linux environments, here are steps for enabling Angelfish to boot at startup using systemd.

These steps are based on instructions from this help article:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-managing_services_with_systemd

1) Create file called 'angelfish.service' in /etc/systemd/system/

You will need root or sudo privileges to create this file. Once created, the file needs permissions of 664.

Example angelfish.service file:

[Unit]
Description = Start Angelfish at boot
After = network.target
[Service]
User = angelfish
ExecStart = /usr/local/agfs/agfsctl --start
ExecStop = /usr/local/agfs/agfsctl --stop
Type = forking
[Install]
WantedBy = multi-user.target

You can copy and paste the above into the angelfish.service file (ignore the equals signs). Be sure to update the following variables to match your environment:

User: the service account used to start/stop Angelfish
ExecStart: full path to "agfsctl --start"
ExecStop: full path to "agfsctl --stop"


2) Register the angelfish.service file

Run the following commands as root:

systemctl daemon-reload
systemctl enable angelfish.service

Angelfish will now boot at startup!

You can start / stop Angelfish by calling the agfsctl binary directly, or by running the following:
systemctl start angelfish.service
systemctl stop angelfish.service

Was this article helpful?
0 out of 0 found this helpful

0 Comments

Article is closed for comments.