How to automatically launch PIVX when the server starts

Started by Adonis 6 years ago · 0 replies · 5071 views
6 years ago

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

BASH
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

BASH
sudo systemctl enable PIVX
BASH
sudo systemctl start PIVX

To test :

BASH
sudo reboot

🤪

Suggested topics

Topic Participants Replies Views Activity
Guides · by asadr, 2 years ago
0 3591 2 years ago
Guides · by hamidfatehi, 2 years ago
2 2742 2 years ago
Guides · by Jeffrey, 6 years ago
6 12983 3 years ago
Guides · by Liquid369, 6 years ago
1 6811 4 years ago
Guides · by Jeffrey, 6 years ago
5 9223 4 years ago