What's new

How to automatically launch PIVX when the server starts

Adonis

New Pivian
pivx.png
Here are the commands allowing to start PIVX automatically during a start machine :
Made under ubuntu 19.10

Code:
sudo nano /etc/systemd/system/PIVX.service

#copy the following to the newly created PIVX.service file
#The elements in purple are to be modified according to the version of PIVX, the path, and your username.

[Unit]
Description=PIVX_MN
After=network.target [Service]
User=ubuntu
ExecStart=/home/ubuntu/pivx-4.0.2/bin/./pivxd -daemon
ExecStop=/home/ubuntu/pivx-4.0.2/bin/./pivx-cli stop
TimeoutSec=15min
Type=forking
Restart=on-failure
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=default.target

CTRL+X
Y
ENTER

Code:
sudo systemctl enable PIVX
Code:
sudo systemctl start PIVX

To test :
Code:
sudo reboot
🤪
 
Top