[Eisfair] Frage zu syslogd

Nelson Matias nelson at anires.de
Fr Mär 29 22:31:46 CET 2024


Hallo Marcus,

Marcus Röckrath schrieb am Fri, 29 Mar 2024 21:48:54 +0100:
>Hallo Nelson,
>
>Nelson Matias wrote:
>
>>>3. Damit der service beim Boot automatisch gestartet wird:
>>>
>>>service daemon-reload
>>>service enable syslogpipe  
>> 
>> gemacht ... kommen aber keine Meldungen.
>> Ich dachte aber bei enable sollte eine Meldung kommen?  
>
>Die sind stumm; Ausgaben kommen, wenn du statt service systemctl bemühst.
>
>>>service start syslogpipe  
>> 
>> gemacht. Auch hier scheint nix zu passieren.  
>
>Bitte mal
>
>service status syslogpipe
>
>oder wie auch immer du die seervice-Datei genannt hast.
>
>> ABER:
>> Das script wird nicht gestartet. Der service läuft nicht.
>> Ich kann das mit btop kontrollieren.  
>
>s. o.; vielleicht sagt uns der status etwas.
>
>Oder eben systemctl statt service, weil das gesprächiger ist.

Ok. mit systemctl hab ich das Problem gefunden. 

Restart=always|on-success ist mit Type=oneshot nicht erlaubt.

Ohne restart=always hat sich bei 'service enable syslogpipe' etwas
getan. Es gab zwar keine Meldung aber es kam auch nicht sofort der
prompt.

service status syslogpipe sagt jetzt auch:

root at eis : /etc/systemd/system
# service status syslogpipe
  syslogpipe.service - Syslog Pipe Analyzer
     Loaded: loaded (/etc/systemd/system/syslogpipe.service; enabled; preset: disabled)
     Active: activating (start) since Fri 2024-03-29 22:20:58 CET; 5min ago
   Main PID: 26902 (syslogpipe.sh)
      Tasks: 1 (limit: 4915)
        CPU: 3.803s
     CGroup: /system.slice/syslogpipe.service
             └─26902 /bin/bash /root/.local/bin/syslogpipe.sh

Mar 29 22:20:58 eis systemd[1]: Starting Syslog Pipe Analyzer...

Was mir aufgefallen ist:
Beim manuellen starten blockiert die Console. Und auch im Status seht
'activating'. Der service erreicht also eigentlich nie den Status
'active'.

>-- 
>Gruß Marcus
>[eisfair-Team]


-- 

Gruß
Nelson

-- 
Nelson Matias



Mehr Informationen über die Mailingliste Eisfair