What's new
Best Multics 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!

Auto Restart Multics Mid Night

Status
Not open for further replies.

Satshare

Administrator
Staff member
Joined
Jul 18, 2020
Messages
90
Reaction score
22
Points
8
Hi All
If you want to Reboot Your Multics Every night then Follow below Steps.

this script reboot multics every night on 2:00 AM

1. Put your Multics CFG File in var/etc
2. Put your Multics Bin File in usr/local/bin
3. Create folder Script in var/ Like /var/script
4. make a file called multicsreboot.sh in /var/script/
5. CHMOD the file multicsreboot.sh to 755
6. Put Below Script in multicsreboot.sh
Code:
#!/bin/bash
##Make By Kalf //-Multics.info-\\

CAMNAME="multics Server"

# This method starts Multics
start_cam ()
{
/usr/local/bin/multics -C /var/etc/multics.cfg &
}
# This method stops Multics
stop_cam ()
{
pkill multics &
sleep 2
}
case "$1" in
    start)
        start_cam
        ;;
    stop)
        stop_cam
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage : start | stop | restart"
        ;;
esac

7. open Shh login and run crontab -e and select option 2 nano if show.
8. Add this Line
Code:
00 02  * * * root /var/script/multicsreboot.sh restart
9. Ctr+O to write line in Crontab
10. for Exit in putty from Crontab section to root enter Ctr+X

All done you have run the script and now your Multics Restart every Mid Night 2:00 AM
 
Status
Not open for further replies.
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