Re: gpm-Start bei nicht angeschlossener Maus
Heute (10.03.2007/01:57 Uhr) schrieb Wolfgang Lasch,
> On Sat, 10. March 2007 01:31:21 Jim Knuth wrote:
>> Heute (10.03.2007/00:35 Uhr) schrieb Wolfgang Lasch,
>>
>> > On Fri, 9. March 2007 23:28:55 Ruediger Noack wrote:
>> >> Moin
>> >>
>> >> Ich habe mir in letzter Zeit angewoehnt, meine (leuchtende) USB-Maus
>> >> beim Ausschalten des PCs abzustoepseln. Nun habe ich das Problemchen,
>> >> dass gpm nicht gestartet wird, wenn ich den Nager nicht rechtzeitig
>> >> wieder angestoepselt habe.
>> >>
>> >> Weiß jemand wie ich den gpm-Start erzwingen kann?
>> >
>> > restartd - process checker and/or reloader
>> >
>> > Ich verwende fuer solche Zwecke immer restartd, ein daemon der bei Bedarf
>> > Programme erneut startet.
>>
>> die man page davon ist ja mehr als duerftig. Kannst du mal eine
>> Beispielzeile aus der /etc/restartd.conf posten? Z.B. fuer
>> apache2. Danke.
> Die manpage,ja, aber in /etc/restartd.conf steht eigendlich alles was man
> wissen muss:
> ---8<--- /etc/restartd.conf ---8<---
> # Restartd configuration file
> #
> #
> # Format:
> #
> # <process_name> <regexp> <action_if_not_running>
> <action_if_running>
> #
> # process_name: The name of the process. Just for logging, doesnt take effect
> for the regexp
> #
> # regexp: the POSIX regular expression for the command line of the process
> #
> # action_if_not_running: a script or program name to exec if regexp does not
> match for the full process command line
> #
> # action_if_running: a script or program name to exec if regexp matches for
> the full process command line
> #
> #
> # example:
> #
> # restartd ".*restartd" "/bin/echo 'its not running'
>> /tmp/restartd.out" "/bin/echo 'its running' > /tmp/restartd.out"
> #
> pppd ".*pppd" "/usr/bin/pon dsl-provider"
> iptotal ".*iptotal" "/etc/init.d/iptotal restart"
> apache2 ".*apache2" "/etc/init.d/apache2"
> ---8<--- /etc/restartd.conf ---8<---
> !achtung! die Zeilen oben
> #restartd ...
> und
> > /tmp/...
> gehoeren zusammen, sieht man aber wenn man sich die Datei ansieht.
ja, danke. Aber die 2 Zeilen sind doch nicht identisch. D.h.
deine und die restartd/tmp Zeile
In der Vorgabe steht ja auch nur
<process_name> <regexp> <action_if_not_running> <action_if_running>
Ist <regexp> z.B. das "Gebilde" ".*apache2" "/etc/init.d/apache2"?
> Tschuess,
> Wolfgang
--
Viele Gruesse, Kind regards,
Jim Knuth
jk@jkart.de
ICQ #277289867
----------
Zufalls-Zitat
----------
Gewalt ist die letzte Zuflucht der Unfähigen. (Isaac Asimov)
----------
Der Text hat nichts mit dem Empfaenger der Mail zu tun
----------
Virus free. Checked by NOD32 Version 2105 Build 9242 09.03.2007
Reply to: