v0.0.3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/perl
|
||||
#!/bin/perl
|
||||
# irpg.pl
|
||||
#
|
||||
# The bot modified, released and maintained by TommySalami
|
||||
@@ -33,7 +33,7 @@ my %opts;
|
||||
|
||||
readconfig();
|
||||
|
||||
my $version = "0.0.2";
|
||||
my $version = "0.0.3";
|
||||
|
||||
# command line overrides .irpg.conf
|
||||
GetOptions(\%opts,
|
||||
|
||||
10
irpg-bot/irpgcheck.sh
Normal file
10
irpg-bot/irpgcheck.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ps -ef | grep -v grep | grep /home/user/private/idlerpg/irpg.pl
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
cd /home/user/private/idlerpg
|
||||
nohup /home/user/private/idlerpg/irpg.pl </dev/null >/dev/null 2>&1 &
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user