@
htorbov
Hmmm, I'd recommend looking up:
crontab is not really the best place for a "
persistent" wine service.
If you're running your
Diablo II Game Server from a
Linux Desktop Environment... Then it would be best to just use the autostart facility of that Desktop Environment.
E.g. for
Plasma 5, scripts placed in:
will be run when the DE starts up.
Other Desktop Environments are available! So see:
Arch Wiki: Autostarting ...
I'd recommend a combined startup + keep-alive script like:
Code: Select all
#!/bin/bash
while ((1)); do
while pgrep 'd2gssvc.exe'; do
sleep 1
done
wine net start 'D2GS.exe'
done
That modified script should do the job!
If you want to run an application, under Wine, on a headless server then you have to start running something like a
Virtual X Server ...
That's getting a bit more involved though!
Bob