tcp 0 0 0.0.0.0:6633 0.0.0.0:* LISTEN 0 3623 1192/oscam
tcp 0 0 0.0.0.0:6611 0.0.0.0:* LISTEN 0 3622 1192/oscam
*zwinker*Code:root@debian-test ~ > ps -aux | grep oscam.x86 [COLOR=#ff0000][B]Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html[/B][/COLOR] root 1548 0.0 0.0 4620 392 ? Ss 10:37 0:00 /var/emu/oscam/ root 1550 0.0 0.3 5256 1772 ? Sl 10:37 0:19 /var/emu/oscam/ root 22289 1.0 0.1 3324 832 pts/0 S+ 20:34 0:00 grep oscam.x86 root@debian-test ~ >
posten
ps x | grep -v grep | grep oscam
1304 ? S 0:00 /usr/local/bin/oscam
1310 ? S<l 0:00 /usr/local/bin/oscam
#!/bin/sh
# Start/stop the oscam daemon
#
### BEGIN INIT INFO
# Provides: oscam
# Required-Start: $syslog $network $pcscd
# Required-Stop: $syslog $network $pcscd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and Stop oscam
# Description: oscam init script. This script start and stop oscam.
### END INIT INFO
. /lib/lsb/init-functions
CAMSERVER="OScam Server"
BINARY=oscam
DAEMON=/usr/local/bin/$BINARY
CONFIG_DIR=/usr/local/etc/
PIDFILE=/var/run/oscam.pid
OSCAM_LOG=/var/log/oscam.log
OSCAM_USER_LOG=/var/log/usrfile.log
CW_LOGDIR=/var/log/cw/
CW_LOGFILES=$CW_LOGDIR/*.cwl
START="$DAEMON -- -b -c $CONFIG_DIR"
#test -f $DAEMON || exit 0
[ -x $DAEMON ] || exit 0
[ -d $CONFIG_DIR ] || exit 0
echo $BINARY
clear_file() {
# Clear log and pid file if exists
if [ -e $PIDFILE ]; then
rm -f $PIDFILE
fi
if [ -e $OSCAM_LOG ]; then
rm -f $OSCAM_LOG
fi
if [ -e $OSCAM_USER_LOG ]; then
rm -f $OSCAM_USER_LOG
fi
if [ -d $CW_LOGDIR ]; then
rm -f $CW_LOGFILES
fi
}
case "$1" in
start)
clear_file
log_daemon_msg "Starting $CAMSERVER"
start-stop-daemon --start --quiet --exe $DAEMON --startas $START
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $CAMSERVER"
start-stop-daemon --stop --quiet --exe $DAEMON
log_end_msg $?
;;
restart)
log_daemon_msg "Restarting $CAMSERVER"
start-stop-daemon --stop --retry 5 --quiet --exe $DAEMON
clear_file
start-stop-daemon --start --quiet --exe $DAEMON --startas $START
log_end_msg $?
;;
status)
status_of_proc -p $PIDFILE $DAEMON $BINARY && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/oscam {start|stop|restart|status}"
exit 2
;;
esac
exit 0
root@debianIGEL:~# /etc/init.d/oscam stop
-bash: /etc/inid.d/oscam: Datei oder Verzeichnis nicht gefunden
ls -la /etc/init.d/o*
root@debianIGEL:~# ls -la /etc/init.d/o*
-rwxr-xr-x 1 root root 1694 20. Jan 15:26 /etc/init.d/oscam
root@debianIGEL:~# /etc/init.d/oscam stop
-bash: /etc/init.d/oscam: /bin/sh^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden
root@debianIGEL:~# /etc/init.d/oscam status
oscam
could not access PID file for oscam ... failed!
root@debianIGEL:~# /etc/init.d/oscam stop
oscam
Stopping OScam Server:.
root@debianIGEL:~# ps -aux | grep oscam Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 1326 0.0 0.0 3300 488 ? S 19:32 0:00 /usr/local/bin/oscam
root 1333 0.0 0.3 4328 1756 ? S<l 19:32 0:00 /usr/local/bin/oscam
root 1466 0.0 0.1 3320 812 pts/0 S+ 19:37 0:00 grep oscam
root@debianIGEL:~# /etc/init.d/oscam restart
oscam
Restarting OScam Server:start-stop-daemon: warning: failed to kill 1326: No such process
.
root@debianIGEL:~# ps -aux | grep oscam
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 1471 0.0 0.0 3300 260 ? Ss 19:37 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1474 0.0 0.3 4348 1744 ? S<l 19:37 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1488 0.0 0.1 3320 808 pts/0 S+ 19:37 0:00 grep oscam
root@debianIGEL:~#
getconf LONG_BIT
dpkg-architecture
root@igel:~# dpkg-architecture
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_ARCH_BITS=32
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_ARCH_BITS=32
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu
root@igel:~# /etc/init.d/oscam stop
oscam
Stopping OScam Server:.
root@igel:~# ps x | grep -v grep | grep oscam
1214 ? S 0:00 /usr/local/bin/oscam
1221 ? S<l 0:00 /usr/local/bin/oscam
root@igel:~# /etc/init.d/oscam start
oscam
Starting OScam Server: failed!
root@igel:~# /etc/init.d/oscam restart
oscam
Restarting OScam Server:start-stop-daemon: warning: failed to kill 1214: No such process
.
root@igel:~# ps x | grep -v grep | grep oscam
1323 ? Ss 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
1326 ? S<l 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
da hast du wohl etwas falsch verstanden. Ich sprach nicht von einem 64-Bit System sondern vom Kernel. Wenn du in der Konsole mal einKermit meinte, mein altes Sys wäre ein 64-Bit Sys.
uname -a
Hallo,... @aragorn hat mal eine Anleitung gepostet wir du den Kernel austauschen kannst gegen den passenden...
tut mir leid, hab dich falsch verstanden, der unterschied ist mir zwar klar, aber ich hab da wohl grad irgendwas im kopf gehabt.Hi,
da hast du wohl etwas falsch verstanden. Ich sprach nicht von einem 64-Bit System sondern vom Kernel. Wenn du in der Konsole mal ein
eingibst wirst du eine Ausgabe erhalten, welche SMP beinhaltet. Dies steht nicht für 64-Bit sondern für Mehrkernprozessorsystem, was etwas ganz anderes ist.Code:uname -a
root@igel:~# ps -aux | grep oscam
Warning: bad ps syntax, perhaps a bogus '-'? See [B]Link ist nicht mehr aktiv.[/B]
root 1228 0.0 0.0 3304 484 ? S 12:47 0:00 /usr/local/bin/oscam
root 1235 0.0 0.1 4352 1732 ? S<l 12:47 0:00 /usr/local/bin/oscam
root 1288 0.0 0.0 3324 816 pts/1 S+ 12:52 0:00 grep oscam
root@igel:~# /etc/init.d/oscam stop
oscam
Stopping OScam Server:.
root@igel:~# ps -aux | grep oscam
Warning: bad ps syntax, perhaps a bogus '-'? See [B]Link ist nicht mehr aktiv.[/B]
root 1228 0.0 0.0 3304 492 ? S 12:47 0:00 /usr/local/bin/oscam
root 1235 0.0 0.1 4348 1736 ? S<l 12:47 0:00 /usr/local/bin/oscam
root 1298 0.0 0.0 3324 812 pts/1 S+ 12:52 0:00 grep oscam
root@igel:~# /etc/init.d/oscam restart
oscam
Restarting OScam Server:start-stop-daemon: warning: failed to kill 1228: No such process
.
root@igel:~# ps -aux | grep oscam
Warning: bad ps syntax, perhaps a bogus '-'? See [B]Link ist nicht mehr aktiv.[/B]
root 1303 0.0 0.0 3304 256 ? Ss 12:53 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1305 0.1 0.1 4352 1736 ? S<l 12:53 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1320 0.0 0.0 3320 812 pts/1 S+ 12:53 0:00 grep oscam
root@igel:~# /etc/init.d/oscam restart
oscam
Restarting OScam Server:start-stop-daemon: warning: failed to kill 1303: No such process
.
root@igel:~# ps -aux | grep oscam
Warning: bad ps syntax, perhaps a bogus '-'? See [B]Link ist nicht mehr aktiv.[/B]
root 1326 0.0 0.0 3304 256 ? Ss 12:53 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1328 0.1 0.1 4352 1732 ? S<l 12:53 0:00 /usr/local/bin/oscam -b -c /usr/local/etc/
root 1343 0.0 0.0 3320 808 pts/1 S+ 12:54 0:00 grep oscam
root@igel:~# uname -a
Linux igel 2.6.32-5-486 #1 Sun Sep 23 09:17:35 UTC 2012 i686 GNU/Linux
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?