use crontab
@reboot /root/bpq/run.sh
--------
run.sh?
#!/bin/bash
#
cd /root/bpq
if pgrep -x "linbpq" > /dev/null
then
? ? kill $(pgrep -x "linbpq")
fi
sleep 10
./linbpq >/dev/null 2>/dev/null &
--------------
You can also do a linbpq restart every 6 hours
0 */6 * * * /root/bpq/run.sh
-----------------
There are many Linux distros that do not use systemd
The best option is to use crontab?
?
73