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

Set a key in redis when the scan finishes #390

Merged
merged 3 commits into from
Sep 18, 2019

Conversation

jjnicola
Copy link
Member

Also, fix stop scan using the right pid.

This helps ospd-openvas to identify if a scan crashed or finished cleanly.
It uses the unique key to find the kb in redis.
Also, set the process ID when starts a scan.
This was made before from ospd-openvas, but since it is started with
sudo, ospd-openvas got the sudo pid instead of the openvas main process id.
Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks legit

@jjnicola jjnicola merged commit c99b770 into greenbone:master Sep 18, 2019
@jjnicola jjnicola deleted the openvas-pid branch October 25, 2019 13:58
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

Successfully merging this pull request may close these issues.

None yet

2 participants