Dies ist eine mobil optimierte Seite, die schnell lädt. Wenn Sie die Seite ohne Optimierung laden möchten, dann klicken Sie auf diesen Text.

2 instanzen aber wie?

tureon

Spezialist
Registriert
22. Dezember 2012
Beiträge
590
Reaktionspunkte
135
Punkte
825
guten morgen

hab da mal eine kleine frage bezüglich 2 instanzen.

wie sage ich der 2. instanz das sie den anderen config ordner nehmen soll zum starten?

in meinem start script steht nichts davon drin.

#!/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: open source cam
### END INIT INFO
# /etc/init.d/oscam_ce
#
set -e
DAEMON=/usr/local/bin/oscam_ce
NAME=oscam
OPTIONS=-b
PIDFILE=/var/run/oscam/oscam_ce.pid
PATH=/sbin:/bin:/usr/sbin:/usr/bin


test -x $DAEMON || exit 0


. /lib/lsb/init-functions


case "$1" in
start)
log_daemon_msg "Starting oscam" "oscam"
[ -d /var/run/oscam ] || mkdir -p /var/run/oscam
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $OPTIONS
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping oscam" "oscam"
start-stop-daemon --stop --quiet --pidfile $PIDFILE
log_end_msg $?
rm -f $PIDFILE
;;
restart)
$0 stop && sleep 2 && $0 start
;;
reload|force-reload)
echo "Reloading $NAME configuration files"
start-stop-daemon --stop --pidfile $PIDFILE --signal 1 --exec $DAEMON
echo "."
;;
status)
pidofproc -p $PIDFILE $DAEMON >/dev/null
status=$?
if [ $status -eq 0 ]; then
log_success_msg "oscam is running."
else
log_failure_msg "oscam is not running."
fi
exit $status
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"
exit 1
;;
esac


exit 0

hab alles was für die 2. instanz notwendig ist eine _ce endung gegeben

ok hat sich erledigt.

hab oscam neu compeliert und den pfand geändert zu den configs.

dann mit /usr/local/bin/oscam_ce -b gestartet
 
Zuletzt bearbeitet von einem Moderator:
AW: 2 instanzen aber wie?

Hi,
ansonsten hätte es auch noch Oscam-Startparameter -c gegeben.
Code:
  ___  ____   ___
 / _ \/ ___| / __|__ _ _ __ ___
| | | \___ \| |  / _` | '_ ` _ \
| |_| |___) | |_| (_| | | | | | |
 \___/|____/ \___\__,_|_| |_| |_|

OSCam cardserver v1.20-unstable_svn, build r11209 (i586-linux-gnu)
Copyright (C) 2009-2015 OSCam developers.
This program is distributed under GPLv3.
OSCam is based on Streamboard mp-cardserver v0.9d written by dukat
Visit http://www.streamboard.tv/oscam/ for more details.

 ConfigDir  : /usr/local/etc

 Usage: oscam [parameters]

 Directories:
[COLOR=#ff0000] -c, --config-dir <dir>  | Read configuration files from <dir>.[/COLOR]
                         . Default: /usr/local/etc
 -t, --temp-dir <dir>    | Set temporary directory to <dir>.
                         . Default: /tmp/.oscam

 Startup:
 -b, --daemon            | Start in the background as daemon.
 -B, --pidfile <pidfile> | Create pidfile when starting.
 -r, --restart <level>   | Set restart level:
                         .   0 - Restart disabled (exit on restart request).
                         .   1 - WebIf restart is active (default).
                         .   2 - Like 1, but also restart on segfaults.
 -w, --wait <secs>       | Set how much seconds to wait at startup for the
                         . system clock to be set correctly. Default: 60

 Logging:
 -I, --syslog-ident <ident> | Set syslog ident. Default: oscam
 -S, --show-sensitive    | Do not filter sensitive info (card serials, boxids)
                         . from the logs.
 -d, --debug <level>     | Set debug level mask used for logging:
                         .     0 - No extra debugging (default).
                         .     1 - Detailed error messages.
                         .     2 - ATR parsing info, ECM, EMM and CW dumps.
                         .     4 - Traffic from/to the reader.
                         .     8 - Traffic from/to the clients.
                         .    16 - Traffic to the reader-device on IFD layer.
                         .    32 - Traffic to the reader-device on I/O layer.
                         .    64 - EMM logging.
                         .   128 - DVBAPI logging.
                         .   256 - Loadbalancer logging.
                         .   512 - CACHEEX logging.
                         .  1024 - Client ECM logging.
                         .  2048 - CSP logging.
                         .  4096 - CWC logging.
                         . 65535 - Debug all.

 Settings:
 -p, --pending-ecm <num> | Set the maximum number of pending ECM packets.
                         . Default: 32 Max: 4096
 -u, --utf8              | Enable WebIf support for UTF-8 charset.

 Debug parameters:
 -a, --crash-dump        | Write oscam.crash file on segfault. This option
                         . needs GDB to be installed and OSCam executable to
                         . contain the debug information (run oscam-XXXX.debug)
 -s, --capture-segfaults | Capture segmentation faults.
 -g, --gcollect <mode>   | Garbage collector debug mode:
                         .   1 - Immediate free.
                         .   2 - Check for double frees.

 Information:
 -h, --help              | Show command line help text.
 -V, --build-info        | Show OSCam binary configuration and version.
Ich würde der zweiten Instanz beim Start auch noch ein eigenes temp-Dir bzw. ein anderes pid-File geben.

Gruß
janni1
 
AW: 2 instanzen aber wie?

Gegenfrage: Wozu zweite Instanz?

-supraracer
 
AW: 2 instanzen aber wie?

jo CEX

hab alles auf oscam_ce bzw /etc_ce
 
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…