Autostart snowgemd process

A step by step guide howto monitor and autostart your snowgemd process

(Linux VPS)

For additional peace of mind you can install Monit on your linux Masternode VPS for  unattended monitoring of the snowgemd daemon process. Start off by installing Monit.

Log in to your VPS using PuTTY or anyone of your favorite SSH clients.

sudo apt-get install monit​

In all of the below examples is it IMPORTANT you change user to the username you are using.

Create file /home/user/.snowgem/start_snowgemd.sh

sudo nano /home/user/.snowgem/start_snowgemd.sh

and add the below two lines to it:

#!/bin/bash
/bin/su user -c ‘/home/user/.snowgem/snowgemd 2>&1 >> /home/user/.snowgem/rc.local.log’​

Make it executable:

chmod 755 /home/user/.snowgem/start_snowgemd.sh​

Edit the file /etc/monit/monitrc

sudo nano /etc/monit/monitrc​

Edit the file as follows:

# uncomment these lines(by default leave them exactly like they are)

set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and

Add the following lines to the bottom of the monitrc file, underneath ## Check custom program status output:

check process snowgemd with pidfile /home/user/.snowgem/snowgemd.pid
start program = “/home/user/.snowgem/start_snowgemd.sh” with timeout 60 seconds
stop program = “/bin/su user -c /home/user/.snowgem/snowgem-cli stop”​

Load the new configuration:

sudo monit reload

Enable the watchdog:

sudo monit start snowgemd​

That’s it. You only have to issue the above command once, monit will auto start in future.
You can check monit’s status by typing below:

sudo monit status​

It will keep your snowgemd running for you (across reboots too, no need for any crons or scripts) and keep you from fighting with your chosen OS.


Monit only runs once a minute, so be patient if you’re waiting for it to do something. If you need proof it works, once you see your snowgemd in the ‘sudo monit status’ output, you can test it by simply stopping your snowgemd (snowgem-cli stop) — within 2 minutes it’ll start it back up. Restart your local PC wallet and check under Masternode tab if your MN is listed and running, if not you can “Start Alias” on selected MN again.

snowgem footersm2

SnowGem maintains that there is no central authority, the system’s decisions will be controlled by nodes in the network. The network is open to anyone, anywhere in the world. We are looking forward to a future where transferring money is no longer complicated and troublesome. 

Recent Posts

Jul 10, 2018 We are on CMC!
Jul 07, 2018 Security update
Jul 05, 2018 Fork Celebration