Upload the attached file to /var/etc
Chmod cccam.sh
For start:
For stop:
For restart:
PHP
#!/bin/bash
CAMNAME="CCcam Server"
# This method starts CCcam
start_cam ()
{
/var/etc/CCcam.x86 -c /var/etc/CCcam.cfg &
}
# This method stops CCcam
stop_cam ()
{
pkill CCcam.x86 &
sleep 2
}
case "$1" in
start)
start_cam
;;
stop)
stop_cam
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage : start | stop | restart"
;;
esac
Display More