<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="de">
  <siteinfo>
    <sitename>Linupedia.org</sitename>
    <dbname>linupediadb</dbname>
    <base>https://linupedia.org/opensuse/Hauptseite</base>
    <generator>MediaWiki 1.31.0</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Medium</namespace>
      <namespace key="-1" case="first-letter">Spezial</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Diskussion</namespace>
      <namespace key="2" case="first-letter">Benutzer</namespace>
      <namespace key="3" case="first-letter">Benutzer Diskussion</namespace>
      <namespace key="4" case="first-letter">Linupedia.org</namespace>
      <namespace key="5" case="first-letter">Linupedia.org Diskussion</namespace>
      <namespace key="6" case="first-letter">Datei</namespace>
      <namespace key="7" case="first-letter">Datei Diskussion</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki Diskussion</namespace>
      <namespace key="10" case="first-letter">Vorlage</namespace>
      <namespace key="11" case="first-letter">Vorlage Diskussion</namespace>
      <namespace key="12" case="first-letter">Hilfe</namespace>
      <namespace key="13" case="first-letter">Hilfe Diskussion</namespace>
      <namespace key="14" case="first-letter">Kategorie</namespace>
      <namespace key="15" case="first-letter">Kategorie Diskussion</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Lcdproc Startscript zur Nutzung des LCDd unter openSUSE</title>
    <ns>0</ns>
    <id>3188</id>
    <revision>
      <id>8746</id>
      <timestamp>2006-12-29T12:21:39Z</timestamp>
      <contributor>
        <username>TomcatMJ</username>
        <id>12</id>
      </contributor>
      <comment>lcdproc Startscript passend zum LCDd Startscript</comment>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text xml:space="preserve" bytes="4362">Hier nun passend zum [[LCDd Startscript für lcdproc unter openSUSE|LCDd Startscript]] das ebenso modifizierte Startscript für SUSE/openSUSE Linux zur Anzeige der diversen Systeminformationen, also für lcdproc selbst als Client für den LCDd.
&lt;pre&gt;

#!/bin/sh
# This is the lcdproc init-script for RPM based (RedHat, Mandrake) systems
#
# Copyright (C) 2001  Rene Wagner &lt;reenoo@gmx.de&gt;
#               2001  Guillaume Filion &lt;gfk@logidac.com&gt;
#
# Modified for openSUSE 2006 by Tom Meierjürgen &lt;tomcatmj@web.de|
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307

### BEGIN INIT INFO
# Provides:          lcdproc
# Required-Start:    $local_fs $syslog $network $LCD-lcdproc
# X-UnitedLinux-Should-Start: inetd sensors 
# Required-Stop:     $local_fs $syslog
# X-UnitedLinux-Should-Stop: inetd sensors 
# Default-Start:     2 3 5
# Default-Stop:      0 1 6
# Short-Description: LCDd lcdproc server daemon
# Description:       start LCDd lcdproc server daemon which displays system informations on a LCD
### END INIT INFO

#
#
# chkconfig: 345 71 20
# description: LCDd(8) is the LCDproc server used for displaying text and other data to LCDs. \
#       Apart from the main client lcdproc(1) there are various clients. \
#       See http://lcdproc.omnipotent.net for details.
# processname: lcdproc
# pidfile: /var/run/lcdproc.pid
# config: /etc/sysconfig/lcdproc

# Source function library.
#. /etc/rc.d/init.d/functions

# Source networking configuration.
#. /etc/sysconfig/network

# Check that networking is up.
#if [ ${NETWORKING} = &quot;no&quot; ]; then
#        exit 0
#fi

RETVAL=0

prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
sbindir=${exec_prefix}/sbin
etc=${prefix}/etc
lcdprocbin=${bindir}/lcdproc
lcdprocconf=${etc}/lcdproc.conf
SCREENS=&quot;C X&quot;;
# Check for missing binaries (stale symlinks should not happen)
test -x $lcdprocbin || { echo &quot;$lcdprocbin not installed&quot;; exit 5; }

# Check for existence of needed config file

test -r $lcdprocconf || { echo &quot;$lcdprocconf not existing&quot;; exit 6; }

# Source LSB init functions
. /etc/rc.status


# See how we were called.
case &quot;$1&quot; in
    start)
        echo -n &quot;Starting lcdproc &quot;

        if [ -f $lcdprocconf ]; then
                startproc ${lcdprocbin} -c ${lcdprocconf}
        else
                startproc ${lcdprocbin} -d $SCREENS
        fi

        RETVAL=$?
        [ $RETVAL -eq 0 ] &amp;&amp; touch /var/lock/lcdproc
        echo
        rc_status -v
        ;;
    stop)
        echo -n &quot;Shutting down lcd4linux &quot;
        killproc -TERM $lcdprocbin
        rc_status -v
        ;;
    try-restart|condrestart)
        if test &quot;$1&quot; = &quot;condrestart&quot;; then
                echo &quot;${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}&quot;
        fi
        $0 status
        if test $? = 0; then
                $0 restart
        else
                rc_reset        # Not running is not a failure.
        fi
        rc_status
        ;;
  status)
        echo -n &quot;Checking for service lcdproc &quot;
        checkproc $lcdprocbin
        rc_status -v
        ;;

  restart)
        $0 stop
        $0 start
        rc_status
        ;;
  force-reload)
        echo -n &quot;Reload service lcdproc &quot;
        killproc -HUP $lcdprocbin
        rc_status -v
        ;;
  reload)
        echo -n &quot;Reload service lcdproc &quot;
        killproc -HUP $lcdprocbin
        rc_status -v
        ;;

  *)
        echo &quot;Usage: $0 {start|stop|status|restart|condrestart}&quot;
        exit 1
esac

exit $RETVAL
&lt;/pre&gt;
----
Ursprungsautor der modifizierten lcdproc SUSE Startscript-Version: [[Benutzer:TomcatMJ|TomcatMJ]] 13:21, 29. Dez 2006 (CET)

----
[[Shellscripte|Zurück zu den Shellscripten]]&lt;br/&gt;
[[USB|Zurück zur USB-Übersicht]]

[[Kategorie:Scripte]]</text>
      <sha1>rsj63chaz5h8b9ej93hnw9val0qeok3</sha1>
    </revision>
  </page>
</mediawiki>
