Hallo Zusammen,
ich installiere gerade meinen oscam Server und stoße auf folgendes Problem beim starten (siehe unten).
Es ist ein dedicated Server wo die files alle schon kompiliert sind.
Wo ist der Fehler, dass oscam nicht startet?
----
root@:~# /etc/init.d/oscam start
[ ok ] Starting OScam:.
root@:~# /etc/init.d/oscam stop
[....] Stopping OScam:No /xx/oscam found running; none killed.
failed!
ich installiere gerade meinen oscam Server und stoße auf folgendes Problem beim starten (siehe unten).
Es ist ein dedicated Server wo die files alle schon kompiliert sind.
Wo ist der Fehler, dass oscam nicht startet?
Das Startscript dazu:
#! /bin/sh
###BEGIN INIT INFO
# Provides: Oscam
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oscam init script
# Description: Launch oscam at startup
### END INIT INFO
DAEMON=/x/oscam
DEAMON_OPTS="-b -r 2"
PIDFILE=/x/oscam/oscam.pid
test -x ${DAEMON} || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting OScam"
start-stop-daemon --start --quiet .user- --background --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} -- ${DAEMON_OPTS}
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping OScam"
start-stop-daemon --stop --exec ${DAEMON}
log_end_msg $?
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/oscam {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
###########################################
#! /bin/sh
###BEGIN INIT INFO
# Provides: Oscam
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oscam init script
# Description: Launch oscam at startup
### END INIT INFO
DAEMON=/x/oscam
DEAMON_OPTS="-b -r 2"
PIDFILE=/x/oscam/oscam.pid
test -x ${DAEMON} || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting OScam"
start-stop-daemon --start --quiet .user- --background --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} -- ${DAEMON_OPTS}
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping OScam"
start-stop-daemon --stop --exec ${DAEMON}
log_end_msg $?
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/oscam {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
###########################################
[global]
logfile = /x/oscam/log/oscam.log
nice = -1
usrfile = /x/oscam/log/oscamuser.log
cwlogdir = /x/oscam/log/cw
[anticasc]
enabled = 1
numusers = 1
samples = 5
penalty = 1
aclogfile = /x/oscam/log/aclog.log
denysamples = 4
logfile = /x/oscam/log/oscam.log
nice = -1
usrfile = /x/oscam/log/oscamuser.log
cwlogdir = /x/oscam/log/cw
[anticasc]
enabled = 1
numusers = 1
samples = 5
penalty = 1
aclogfile = /x/oscam/log/aclog.log
denysamples = 4
----
root@:~# /etc/init.d/oscam start
[ ok ] Starting OScam:.
root@:~# /etc/init.d/oscam stop
[....] Stopping OScam:No /xx/oscam found running; none killed.
failed!