Device Upgrade
Upgrade the sshnpd binary
Upgrading to the latest version of sshnpd is identical to the installation process.
Please see the installation guide to proceed.
Verify the Upgrade
To check the current version of sshnpd installed on your machine simply execute the binary:
Or if you installed as root:
The first line of output should contain the version information:
Reload the sshnpd service
After upgrading the sshnpd binary, we must restart the sshnpd service so that it runs using the new version. How you proceed is dependent on the original installation method you used:
Systemd unit
We simply need to restart the systemd service:
The service will restart using the new binary that has been put in place.
Tmux session
The installer automatically restarts your tmux session, no other steps required!
Headless (cron + nohup)
Retrieve the Process ID
To safely restart the headless service, we must be slightly more careful with the headless installation. First we must grab the process id of sshnpd:
You should get a single number as output, this is the process ID of the sshnpd process.
Example:
Verify the Process ID
Before we continue, it is good practice to make sure that we have the correct ID:
Example:
As you can see, under CMD
we have /home/atsign/.local/bin/sshnpd -a @atsign_device -m @atsign_client -d mydevice -suv
. This is the command inside our sshnpd.sh service which used to start sshnpd. This is the correct process that we want to kill in order to restart sshnpd.
Killing the process
Now that we have retrieved and verified the process ID, we can use the kill command to kill the process:
Example:
Verify the Process has been killed
Use the same verification command from before:
Example:
As you can see, there are no entries anymore. This means process 289 has been killed, sshnpd should automatically restart under a new process ID.
Last updated