cskoglun / ciscodnacbackupctl

Other
15 stars 2 forks source link

Issue running in daemon mode #30

Open allenbilly12 opened 8 months ago

allenbilly12 commented 8 months ago

Have this setup to start on reboot in daemon mode using the following in crontab:

@reboot /usr/local/bin/ciscodnacbackupctl daemon start --keep 7

but it doesn't seem to be working when I do ciscodnacbackupctl daemon status I see the following:

NAME STATUS MEMORY_PERCENT CPU_PERCENT PID UPTIME ciscodnacbackupctl sleeping 0.347 0.0 1439029 1126.439

However currently on the DNAC server there is more than 7 backups listed. I run it manually yesterday and it deleted all the backups and left 7 without any issues just seems to be a problem in daemon mode.

m-wrb commented 7 months ago

Hi, I have the same issue :/ Did you manage to solve it?

robertcsapo commented 6 months ago

This might be related to daemonocle library, but not sure what kind of error you are getting here.

recou commented 2 months ago

I've running in a similar problem that the daemon dies after some time. I've tried to setup a systemd service which doesn't work like i've hoped.

systemctl --user status dnacbackupctl.service â— dnacbackupctl.service - dnac backup control tool Loaded: loaded (/home//.config/systemd/user/dnacbackupctl.service; enabled; preset: disabled) Active: activating (auto-restart) since Fri 2024-08-02 09:14:06 CEST; 35s ago Process: 393841 ExecStart=/home//.local/bin/ciscodnacbackupctl daemon start --keep 5 (code=ex> Main PID: 393841 (code=exited, status=0/SUCCESS) CPU: 318ms