<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hallo Rainer,<br>
<br>
ich habe mal vzlogger mit der shell Option -x laufen lassen:<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
<pre>$ sudo sh -x /etc/init.d/vzlogger start
<span class="anchor" id="line-2-9"></span>+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
<span class="anchor" id="line-3-8"></span>+ DESC=smartmetering server
<span class="anchor" id="line-4-8"></span>+ NAME=vzlogger
<span class="anchor" id="line-5-7"></span>+ DAEMON=/usr/bin/vzlogger
<span class="anchor" id="line-6-7"></span>+ DAEMON_ARGS=-d
<span class="anchor" id="line-7-6"></span>+ PIDFILE=/var/run/vzlogger.pid
<span class="anchor" id="line-8-6"></span>+ SCRIPTNAME=/etc/init.d/vzlogger
<span class="anchor" id="line-9-6"></span>+ USER=vzlogger
<span class="anchor" id="line-10-6"></span>+ GROUP=vzlogger
<span class="anchor" id="line-11-6"></span>+ [ -x /usr/bin/vzlogger ]
<span class="anchor" id="line-12-6"></span>+ [ -r /etc/default/vzlogger ]
<span class="anchor" id="line-13-6"></span>+ . /lib/init/vars.sh
<span class="anchor" id="line-14-5"></span>+ TMPTIME=0
<span class="anchor" id="line-15-5"></span>+ SULOGIN=no
<span class="anchor" id="line-16-4"></span>+ DELAYLOGIN=no
<span class="anchor" id="line-17-4"></span>+ UTC=yes
<span class="anchor" id="line-18-4"></span>+ VERBOSE=no
<span class="anchor" id="line-19-4"></span>+ FSCKFIX=no
<span class="anchor" id="line-20-4"></span>+ [ -f /etc/default/rcS ]
<span class="anchor" id="line-21-3"></span>+ . /etc/default/rcS
<span class="anchor" id="line-22-3"></span>+ unset EDITMOTD
<span class="anchor" id="line-23-3"></span>+ unset RAMRUN
<span class="anchor" id="line-24-2"></span>+ unset RAMLOCK
<span class="anchor" id="line-25-2"></span>+ [ -r /proc/cmdline ]
<span class="anchor" id="line-26-2"></span>+ cat /proc/cmdline
<span class="anchor" id="line-27-2"></span>+ [ ]
<span class="anchor" id="line-28-2"></span>+ . /lib/lsb/init-functions
<span class="anchor" id="line-29-2"></span>+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
<span class="anchor" id="line-30-2"></span>+ [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
<span class="anchor" id="line-31-2"></span>+ . /lib/lsb/init-functions.d/20-left-info-blocks
<span class="anchor" id="line-32-2"></span>+ FANCYTTY=
<span class="anchor" id="line-33-2"></span>+ [ -e /etc/lsb-base-logging.sh ]
<span class="anchor" id="line-34-2"></span>+ true
<span class="anchor" id="line-35-2"></span>+ [ no != no ]
<span class="anchor" id="line-36-2"></span>+ do_start
<span class="anchor" id="line-37-2"></span>+ start-stop-daemon --start --chuid vzlogger --group vzlogger --quiet --pidfile /var/run/vzlogger.pid --exec /usr/bin/vzlogger --test
<span class="anchor" id="line-38-2"></span>+ start-stop-daemon --start --chuid vzlogger --group vzlogger --quiet --pidfile /var/run/vzlogger.pid --exec /usr/bin/vzlogger -- -d
<span class="anchor" id="line-39-2"></span>[Apr 01 18:02:50][mtr0] Creating new meter with protocol sml.
<span class="anchor" id="line-40-2"></span>[Apr 01 18:02:50][mtr0] Meter configured. enabled
<span class="anchor" id="line-41-2"></span>[Apr 01 18:02:50] New meter initialized (protocol=sml)
<span class="anchor" id="line-42-2"></span>[Apr 01 18:02:50] Configure channel.
<span class="anchor" id="line-43-2"></span>[Apr 01 18:02:50][chn0] New channel initialized (uuid=...fc41c6 protocol=volkszaehler id=1-0:1.8.0)
<span class="anchor" id="line-44-2"></span>[Apr 01 18:02:50] Have 1 meters.
<span class="anchor" id="line-45-2"></span>[Apr 01 18:02:50][main] foreground=0, daemon=1, local=1
<span class="anchor" id="line-46-2"></span>[Apr 01 18:02:50] Daemonize process...
<span class="anchor" id="line-47-2"></span>+ [ no != no ]
<span class="anchor" id="line-48-2"></span>+ :
<span class="anchor" id="line-49-2"></span>pi@raspberrypi ~ $ ps -A | grep vzlogger
<span class="anchor" id="line-50-2"></span># kein laufender Prozess
# kein file /var/run/vzlogger.pid
# kein file /var/log/vzlogger.log
-------------------
Dabei ist mir aufgefallen, dass vzlogger mit user:group vzlogger gestartet wird.
Da ist es nicht möglich die Datei /var/run/vzlogger.pid anzulegen,
ebenso geht /var/log/vzlogger.log nicht.
</pre>
Wie soll das mit den Rechten laufen?<br>
<br>
Grüße, Rudolf<br>
<br>
Am 31.03.14 19:30, schrieb Rainer Gauweiler:<br>
</div>
<blockquote cite="mid:5339A649.4020803@moppl.inka.de" type="cite">Hallo
Rudolf,
<br>
<br>
Am 31.03.2014 18:56, schrieb Rudolf Reuter:
<br>
<blockquote type="cite">"verbosity" : 15, /* between 0 and
15 */
<br>
</blockquote>
<br>
Stell das mal auf 500 und schau nochmal in die vzlogger.log rein.
<br>
<br>
Gruss
<br>
Rainer
<br>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>