Polrestarter for linux

This is where you can post about tools related specifically to the POL Server itself

Moderator: POL Developer

Post Reply
User avatar
Pumpkins
Apprentice Poster
Posts: 52
Joined: Mon Jan 22, 2007 6:06 am

Polrestarter for linux

Post by Pumpkins »

Hi ladys :D

Im looking for a version from polrestarter.bat but for linux..

at the moment im using 095
User avatar
AxelDominatoR
New User
Posts: 27
Joined: Sat Jul 28, 2007 4:37 pm
Location: HellCat Realms

Post by AxelDominatoR »

I just posted my POLManager script here on this forum.
I honestly never used polrestarter.bat but my script has a simple auto-restart facility, you may give it a try and see if it can help you...

:shock:
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

Re: Polrestarter for linux

Post by goqsane »

Code: Select all

user="youruser"
process="./pol"
dir="/home/you/sth"
while [ 1 ] ; do
ps U $user | grep -v grep | grep -w $process
if [ $? != 0 ];then
        echo '[+] Launching POL...'
        cd $dir && ./pol
        echo '[+] Done...'
else
        echo '[!] Proces is running!'
fi
sleep 60
remember that POL needs a tty, I sugggest 'screen'
User avatar
AxelDominatoR
New User
Posts: 27
Joined: Sat Jul 28, 2007 4:37 pm
Location: HellCat Realms

Re: Polrestarter for linux

Post by AxelDominatoR »

Mmm... screen is a nice idea. I could put it into POLManager v0.0.4 if you don't mind me stealing your suggestion :)
Post Reply