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!

multics reboot script (if your server cant reboot every night)

Status
Not open for further replies.

Satshare

Administrator
Staff member
Joined
Jul 18, 2020
Messages
90
Reaction score
22
Points
8
hello m8's

i em back

i have maked a script for multics if your server cant reboot every night !
this script reboot multics every night on 4:00

PUT YOUR MULTICS IN VAR/BIN & MULTICS.CFG IN VAR/ETC !!!
/var/bin/multics
/var/etc/multics.cfg


-1- make a file called multicsreboot.sh in /var/script/

-2-
CHMOD the file multicsreboot.sh to 755
-3- ADD to the file
Code:
#!/bin/bash
##Make By Kalf //-Multics.info-\\

CAMNAME="multics Server"

# This method starts Multics
start_cam ()
{
/var/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

-4- open Crontab
Code:
nano /etc/crontab
-5- ADD this line

Code:
00 04  * * * root /var/script/multicsreboot.sh restart

-6-
now restart crontab
Code:
/etc/init.d/cron restart

all done now
your multics reboots on 4:00 every night

Maked by Kalf
 
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