- 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
7. open Shh login and run crontab -e and select option 2 nano if show.
8. Add this Line
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
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
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