تسجيل الدخول

مشاهدة النسخة كاملة : اعادة تشغيل أي أيمو على ******* vps تلقائيا


emad omar
2016/03/25, 02:21 AM
الطريقة سهلة جداً
---------------------------
وهي كالتالي

ادخل على ملفات سيرفرك VPS بواسطة FTP


اذهب للمسار etc ستجد ملف rc.local أفتحه
راح تجده كالتالي قبل التعديل[/COLOR]

#!/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. exit 0

[/SIZE][/B][/FONT][/COLOR][/B]
قم فقط بإضافة اﻷسطر التالية قبل السطر

exit 0

وراح تكون اﻷوامر المضافة كالتالي

أوﻻً لمن أراد اعادة تشغيل السي سي كام فقط يضيف اﻷمر بالملف

/var/bin/./CCcam.x86

ثانياً لمن أراد اعادة تشغيل البروكسي فقط يضيف اﻷمر بالملف
/usr/local/csp/./cardproxy.sh start

ثالثاً لمن أراد اعادة تشغيل اﻷوسكام فقط يضيف اﻷمر بالملف

/var/bin/./oscam -b

رابعاً لمن أراد اعادة تشغيل جميع ماسبق يضيف اﻷوامر التالية بالملف
/var/bin/./CCcam.x86 /var/bin/./oscam -b /usr/local/csp/./cardproxy.sh start

وطبعاً ﻻ تنسى أن تعمل حفظ للملف

ويعمل ريستارت لسيرفر VPS باﻷمر التالي
reboot -n

وذلك لتجربة ماسبق وراح يعيد ******* تلقائياً تشغيل ماسبق خلال 2-5 دقائق

ملف rc.local مع اﻷوامر بعد التعديل واﻹضافة عليه

#!/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. /var/bin/./CCcam.x86 /var/bin/./oscam -b /usr/local/csp/./cardproxy.sh start exit 0


وطبعاً بهذه الطريقة بإمكانك تشغيل أي ***** لديك فقط بإضافة اﻷمر

طة فؤاد
2016/03/26, 08:52 PM
شكرا على المعلومات المفيده