Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
paccoin systemd service
#Pipe the conf to systemd path
cat <<EOF > /etc/systemd/system/pacd.service
[Unit]
Description=PAC daemon
After=network.target
[Service]
User=root
Group=root
Type=forking
PIDFile=/root/.paccoincore/paccoind.pid
ExecStart=/root/paccoind -daemon -pid=/root/.paccoincore/paccoind.pid \
-conf=/root/.paccoincore/paccoin.conf -datadir=/root/.paccoincore/
ExecStop=-/root/paccoin-cli -conf=/root/.paccoincore/paccoin.conf \
-datadir=/root/.paccoincore/ stop
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
EOF
#enable the service
systemctl enable pacd.service
#start the service
systemctl start pacd.service
[Unit]
Description=PAC daemon
After=network.target
[Service]
User=root
Group=root
Type=forking
PIDFile=/root/.paccoincore/paccoind.pid
ExecStart=/root/paccoind -daemon -pid=/root/.paccoincore/paccoind.pid \
-conf=/root/.paccoincore/paccoin.conf -datadir=/root/.paccoincore/
ExecStop=-/root/paccoin-cli -conf=/root/.paccoincore/paccoin.conf \
-datadir=/root/.paccoincore/ stop
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.