MultiCS & CSP & OScam Exchange Forum

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Script to start Multics server automatically and to clear the ram



SibUK

Moderator
Staff member
Moderator
Joined
Jul 4, 2012
Messages
2,784
Reaction score
2,567
Points
113
what is CORN ? or CORNTAB
I think you mean CRON or CRONTAB :LOL::LOL::LOL:
 

joyahmed

New Member
Member
Joined
Jul 5, 2016
Messages
8
Reaction score
5
Points
3
Location
dhaka
i have two multics on one vps. any change needed on autorun.sh or Ramcleaning.sh ?
 

virk

New Member
Member
Joined
Dec 25, 2016
Messages
9
Reaction score
22
Points
3
Location
punjab
ramclean is for whole vps, dont need changes..
below are the files i have made changes to work for two multics on one vps
 

Attachments

  • autorun2multics&ramclean.zip
    1.8 KB · Views: 232

cc-mert

Member
Member
Joined
Nov 11, 2017
Messages
5
Reaction score
0
Points
8
Location
Germany
Thanks it is very good script but I have 3 multics edited myself does not call.


#!/bin/sh
echo "Installation corntab script for automated MultiCS Restart and Ram Cleaning"
echo "Waiting for Start-up..... "
sleep 5
echo "OK"
echo ""
chown $OWNER /var/etc/script
echo ""
echo "######################### MultiCS x64 ############################" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun.sh >>/var/log/autorun.log 2>&1" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun1.sh >>/var/log/autorun1.log 2>&1" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun2.sh >>/var/log/autorun2.log 2>&1" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun3.sh >>/var/log/autorun3.log 2>&1" >> /etc/crontab
echo "*/30 * * * * root /var/etc/script/./RamCleaning.sh >>/var/log/rm.log 2>&1 " >> /etc/crontab
service cron restart
echo ""
exit 0



#!/bin/sh

if ps x |grep -v grep |grep -c multics_3 >/dev/null
then
echo "Multics1... ok"
else
date=`date`
echo "Restarting multics_3 : $date" >> /var/log/autorun3.log

echo "multics... restarting"
/usr/local/bin/multics_3 -v -b -C /var/etc/multics_3.cfg > /var/log/multics_3.log &
fi
 

Dishnxt

New Member
Member
Joined
Dec 1, 2017
Messages
15
Reaction score
-1
Points
1
Location
Delhi
./cron.sh
Installation corntab script for automated MultiCS Restart and Ram Cleaning
Waiting for Start-up.....
OK

chown: missing operand after ‘/var/etc/script’
Try 'chown --help' for more information.

cron stop/waiting
cron start/running, process 61896
 

bebelusul

Cache Master Blaster!
VIP
Joined
Jun 30, 2012
Messages
1,093
Reaction score
459
Points
113
Location
Offshore!
tried the drop_cache method to clear the ram but it seems on some vps servers you can`t edit that file :)
 

virk

New Member
Member
Joined
Dec 25, 2016
Messages
9
Reaction score
22
Points
3
Location
punjab
./cron.sh
Installation corntab script for automated MultiCS Restart and Ram Cleaning
Waiting for Start-up.....
OK

chown: missing operand after ‘/var/etc/script’
Try 'chown --help' for more information.

cron stop/waiting
cron start/running, process 61896
Try this script

Sorry for sooooo late reply
 

Attachments

  • autorun2multics&ramclean.zip
    1.8 KB · Views: 34

virk

New Member
Member
Joined
Dec 25, 2016
Messages
9
Reaction score
22
Points
3
Location
punjab
there was error in cron.sh file


#!/bin/sh
echo "Installation corntab script for automated MultiCS Restart and Ram Cleaning"
echo "Waiting for Start-up..... "
echo "Script Installed Successfully"
echo ""
chown root -R /var/etc/script/
echo ""
echo "######################### MultiCS x64 ############################" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun.sh >>/var/log/autorun.log 2>&1" >> /etc/crontab
echo "*/1 * * * * root /var/etc/script/./autorun2.sh >>/var/log/autorun2.log 2>&1" >> /etc/crontab
echo "*/30 * * * * root /var/etc/script/./RamCleaning.sh >>/var/log/rm.log 2>&1 " >> /etc/crontab
service cron restart
echo ""
exit 0
 

djamel29000

Active Member
Member
Joined
Jul 11, 2013
Messages
503
Reaction score
140
Points
43
Location
ALGERIA
chown: missing operand after '/var/etc/script'
Try 'chown --help' for more information.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.



Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock