12528 Members
237 Forums
7811 Topics
24004 Posts
Max Online: 9115 @ 08/24/24 07:30 PM
|
|
|
13 registered (Admin, Toysoft, Smokey, haki, bobot, karimkaki15, goode men, Franco89, OMEGA, raffsif1234, didond, gerolamo, bori),
1487
Guests and
145
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
|
|
|
|
#22606 - 12/27/20 05:04 AM
Easy Tutorial to Install Cron on OpenPLi images
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9993
|
Easy Tutorial to Install Cron on OpenPLi images Cron binary is busybox-cron, that needs to be installed, with commands below. opkg update
opkg install busybox-cron Then if the folder doesn't exist create the folders below mkdir /etc/cron
mkdir /etc/cron/crontabs to edit crontab -e and lines in cron are as below, */1 * * * * /etc/OSCamCheck.sh and an example of a script that checks oscam, #!/bin/sh
#DESCRIPTION=Relaunch OSCam if not running
if ps w |grep -v grep |grep -c oscam >/dev/null
then
echo "OSCam... ok"
else
echo "OSCam... restarting"
killall oscam > /dev/null
sleep 5
/etc/init.d/softcam restart
fi Reboot everyday at 1am, and get box in standby at 1.10am 1 1 * * * reboot
10 1 * * * wget -O /dev/null -q http://root:@localhost/web/powerstate?newstate=0
Attachments
busybox-cron_1.24.1-r0_mips32el.zip (33 downloads)busybox-cron_1.24.1-r0_mips32el-nf.zip (12 downloads)busybox-cron_1.24.1-r0_cortexa15hf-neon-vfpv4.zip (10 downloads)busybox-cron_1.24.1-r0_aarch64.zip (9 downloads)
_________________________
|
Top
|
|
|
|
|
|
|