-
Notifications
You must be signed in to change notification settings - Fork 143
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
begin moving functions to common.sh (top htop) #776
begin moving functions to common.sh (top htop) #776
Conversation
why accepting |
That was already in the top and htop file. It works but you have to press CTRL+C to jump to the next one... |
I've now changed it to where the set_target_single function will only set the target, and the check_target_exists will only verify that it exists. With this, it is probably necessary to first set, then check existence, the check if TARGET is running (only needed for some commands) I've also modified it so htop and top now only accept one argument. |
I've reorganized the functions inside common.sh to alphabetical order and improved error handling. |
@yaazkal this PR is the first step in migrating some functions.
Let me know if you have any questions. |
tested successfully |
@bmac2
This was a simple first task. Do you think something like this will work?
this basically move the functions to check if a jail is running into common.sh and top and htop are the first files for it to be integrated.
Testing just requires runnin top and htop on a jail. Making sure to see if the command recognized a stopped and started jail. I also added a -f option to start it if it is stopped.