Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

For Linux, be sure to give execute access to USAS or USPS without an extension, USAS.exe and USPS.exe are Windows binaries.

Update Service File

If this is the first installation of the SIF Agent on the current server, refer to the daemonizing the agent section. 

The service file in /etc/systemd/system  will need to be updated for the new installation directory path. Then reenable the service.

Code Block
systemctl reenable usps-sif

Starting the Agent

Info

If upgrading, copy the agent.cfg and Agent.ks from the previous install directory prior to starting the new agent.

...

  • Add a symbolic link to the /etc/init.d directory.  For example:

    Code Block
    languagebash
    titleRedhat
    ln -fs /SIFAgents/USAS-SIF-Agent-2.0.2/USAS_daemon.sh  /etc/init.d/usas_sif
    ln -fs /SIFAgents/USPS-SIF-Agent-2.0.2/USPS_daemon.sh  /etc/init.d/usps_sif
    


  • Ensure that the owner is root. If that is not the case, use the following command to change the owner to root.

    Code Block
    languagebash
    titleRedhat
    chown root:root /etc/init.d/usas_sif
    chown root:root /etc/init.d/usps_sif
    


  • Change the rights using the following command.

    Code Block
    languagebash
    titleRedhat
    chmod 755 /etc/init.d/usas_sif
    chmod 755 /etc/init.d/usps_sif
    


  • Next, use the following command to add the USAS_daemon.sh or USPS_daemon.sh to the list of daemons.

    Code Block
    languagebash
    titleRedhat Linux
    chkconfig --add usas_sif
    chkconfig --add usps_sif
    chkconfig --levels 2345 usas_sif on
    chkconfig --levels 2345 usps_sif on
    


  • To start the agent, use this command.

    Code Block
    languagebash
    titleRedhat
    service usas_sif start
    service usas_sif start
    


  • To ask if the agent is running, use this command.

    Code Block
    languagebash
    titleRedhat
    service usas_sif status
    service usps_sif status
    


  • To stop the agent, use this command.

    Code Block
    languagebash
    service usas_sif stop
    service usps_sif stop
    


Ubuntu Linux - Daemonize the Agent
Anchor
ubuntu-daemon
ubuntu-daemon

A service file for the SIF Agent needs to be created and placed in /etc/systemd/system

...