Make MASQ autostart
under review
B
Behemoth
I will be running a MASQ server at my parent's place on a Raspberry Pi (when we have guides to do so).
I'd like for the setup to be in such a way that if my parents were to ever turn off the device then it would be possible to bring the server back online by just turning on the device. There should be no need to start MASQ separately in serving mode, it should be as simple as turning the wall switch off and on which would turn off and turn on the server.
KauriHero
under review
stevang
this would be done via systemd on most linux distros.
here is an example unit file for an systemd service called masqnode, where the binary is /usr/local/bin/MASQNode and the data-directory is under /home/masq/test1/node-files
(that is how i run it, you would need to exchange your file locations and folders with your own paths etc. / the config.toml with all your settings is exptected in the data-directory and you have to do an initial install of the MASQNode like so, https://github.com/linkielink/MASQ-Debian-Node-Setup/blob/main/README.md )
#----------------
[Unit]
Description=MASQNode service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/MASQNode --data-directory /home/masq/test1/node-files/
Restart=always
RestartSec=5
WorkingDirectory=/home/masq/test1/node-files/
[Install]
WantedBy=multi-user.target
#----------------
and here is an article on how to create an systemd service in detail
KauriHero
great idea!
I'm sure there is a shell script that can be written to run the MASQNode daemon as a system service on startup, and an auto start for the masq command
We will try to look this over soon with our team