[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gpm-Start bei nicht angeschlossener Maus



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 dürftig. Kannst du mal eine
> Beispielzeile aus der /etc/restartd.conf posten? Z.B. für
> 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/...
gehören zusammen, sieht man aber wenn man sich die Datei ansieht.

Tschüss,
Wolfgang



Reply to: