Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running in daemon mode #30

Open
allenbilly12 opened this issue Jan 18, 2024 · 3 comments
Open

Issue running in daemon mode #30

allenbilly12 opened this issue Jan 18, 2024 · 3 comments

Comments

@allenbilly12
Copy link

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
Copy link

m-wrb commented Feb 20, 2024

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

@robertcsapo
Copy link
Collaborator

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

@recou
Copy link

recou commented Aug 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants