Results 1 to 2 of 2

Thread: Simple script | Autorestart MultiCS

  1. #1
    Status
    Online
    Geosharing's Avatar
    GS Administrator
    Join Date
    May 2014
    Location
    -=UAE=-
    Interests
    CardSharing
    Posts
    1,895

    Simple script | Autorestart MultiCS

    Hello everybody,
    Most of us have tryed to find a script for an autorestart of our MultiCS when sometimes it goes off itself .
    I have this very simple script for you.
    Go to your VPS via FTP,or WinSCP.
    Than go through folder : etc
    There find file : rc.local

    Right click to edit it.

    In that txt you will find this :

    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.


    Change this script into this one by adding :



    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    /usr/local/bin/multics.x32 -C /var/etc/multics.cfg -b
    exit 0
    Save & Done! Restart your VPS and enjoy.

  2. #2
    Status
    Online
    Geosharing's Avatar
    GS Administrator
    Join Date
    May 2014
    Location
    -=UAE=-
    Interests
    CardSharing
    Posts
    1,895
    use a cron script!
    save bellow file as /var/scripts/checkmultics1.sh
    Code:
    #!/bin/sh

    if ps x |grep -v grep |grep -c multics.x32 >/dev/null
    then
    echo "Multics is UP... ok"
    else
    date=`date`
    echo "Restarting Multics : $date" >> /tmp/checkmultics.log

    echo "Multics... restarting"
    /usr/local/bin/multics.x32 -C /var/etc/multics.cfg -b
    fi

    add this line on cron using
    crontab -e
    Code:
    */3 * * * * /var/scripts/./checkmultics1.sh >>/tmp/checkmultics.sh.log 2>&1
    it will check every 3 minutes if mcs is up or not.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple script | Autorestart MultiCS
    By Geosharing in forum CARDSHARING TUTORIALS
    Replies: 0
    Last Post: 07-24-2015, 07:31 PM
  2. Script to start MultiCS when goes off.
    By Geosharing in forum Multics
    Replies: 0
    Last Post: 09-18-2014, 03:11 PM
  3. A Simple Tutorial Script To Check Multics Running
    By Geosharing in forum Multics
    Replies: 1
    Last Post: 07-11-2014, 10:53 AM
  4. MultiCS END-DATE Script
    By skyhome in forum Multics
    Replies: 5
    Last Post: 07-07-2014, 09:39 AM
  5. Script to start MultiCS when goes off.
    By Geosharing in forum Multics
    Replies: 3
    Last Post: 05-22-2014, 05:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
RSS RSS 2.0 XML MAP HTML TAGS

All posts written express the point of view of its owner, does not imply in any way the point of view of management forum.

petites annonces