Topic: [Solved]PvPGN running on non-background process?
Currently, I'm using the following commands, in order to start the PvPGN server:
cd ~/pvpgn/sbin
./bnetd
./d2cs
./d2db
What I'm trying to do, is to make a shell, to keep the processes always running (with a `screen`):
#!/bin/sh
# Go to the directory
cd ~/pvpgn/sbin
# Blizzlike
if ! screen -list | grep -q "D2:BNETD"; then
screen -dmS "D2:BNETD" ./bnetd
fi
if ! screen -list | grep -q "D2:D2CS"; then
screen -dmS "D2:D2CS" ./d2cs
fi
if ! screen -list | grep -q "D2:D2DBS"; then
screen -dmS "D2:D2DBS" ./d2dbs
fi
The problem is, that the `screen` processes always disappear, so I can't run it with a one-minute crontab (because it runs over and over again, showing an error, that the port is already in use).
Is there a way to run (for example) `bnetd`, on non-background process?