- 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
-4- open Crontab
-5- ADD this line
-6-
now restart crontab
all done now
your multics reboots on 4:00 every night
Maked by Kalf
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
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