uroni / urbackup-client-docker

Apache License 2.0
10 stars 6 forks source link

check status on client side #3

Open vince87 opened 2 years ago

vince87 commented 2 years ago

can you add the ability to view the status of urbackupclientbackend? if I throw "service urbackupclientbackend status" it just returns me "[ok] urbackupclientbackend is running." with no verbose debug thanks Vincenzo

laurentlemercier commented 1 year ago

Hi in fact it already exists : urbackupclientbackend -v info (info, or warn, error, debug...)

root@rasp-domoticz:/etc# urbackupclientbackend -v info | more
2023-07-09 08:36:32: ERROR: Binding tcp socket to port 35621 failed. Another ins
tance of this application may already be active and bound to this port.
2023-07-09 08:36:32: ERROR: FileServ exit with error code: 99
2023-07-09 08:36:32: ERROR: urbackupserver: Failed binding socket to port 35623.
 Another instance of this application may already be active and bound to this po
rt.
2023-07-09 08:36:32: Started UrBackupClient Backend...

by the way, when urbackupclientbackend is not running, the error code is right (non zero) :

root@afd311e4bf26:/etc/init.d# service urbackupclientbackend status
urbackupclientbackend is not running ... failed!
root@afd311e4bf26:/etc/init.d# echo $?
1