Running as a Background Service
SocketXP Linux Daemon
For production, it is recommended to run SocketXP agent as a daemon service, so that everytime your system or device reboots and comes back up, SocketXP agent will be automatically kickstarted. SocketXP can be installed as a Linux systemd daemon service
. Here are the instructions to run SocketXP agent as a systemd background service in Linux OS.
Follow the instructions to download and install the linux SocketXP agent in your /usr/local/bin
directory.
SocketXP Login:
Follow the instructions in the Getting Started
section to login and authenticate the device with the SocketXP Cloud Gateway.
Install the daemon
Create a config.json
file in the /etc/socketxp/
folder and execute the below daemon service install command.
Note
Please refer to the Configuration section to learn how to create a configuration file for various usecases.
Reload
SocketXP will come up as a daemon service.Status Check
Check the status of the SocketXP daemon service using the below cli.
If you want to check the logs from the SocketXP daemon to find the public URL, execute the following command using the "journalctl" command.Start/Stop the service:
Uninstall
To uninstall, first stop the service. Then uninstall using the socketxp CLI.