Hi Dominique,

We have tried kill the rh-find processes, but they spawn again.
As last mail I replied:

After modified default_action from cmd("/bin/rbh-find /work1/ -mtime +30 > 
/tmp/NAo30D.lst") to cmd("echo {path} >> /tmp/NAo30D.lst") and ran robinhood 
--run="check_idle" --once again, those processes rbh-find terminated.

Thanks for your help.

Regards
******************************************************
Bruce Chen
System Planning Dept.
System Technology & Management Div.
Acer Cybercenter Service Inc.
******************************************************

________________________________________
From: Dominique Martinet [[email protected]]
Sent: Friday, October 07, 2016 5:02 PM
To: Chen, Bruce
Cc: [email protected]; LEIBOVICI Thomas
Subject: Re: [robinhood-support] It takes long time to run the policy - 
2016/10/06

Hi,

LEIBOVICI Thomas wrote on Fri, Oct 07, 2016 at 08:16:46AM +0200:
> >However, we found that there are several processes still running on
> >system.
> >
> >-bash-4.2# ps -ef | grep rbh-find
> >root     38536 10473  9 09:40 ?        00:00:09 /bin/rbh-find /work1
> >-mtime +30 > /tmp/NAo30D.lst
> >root     38537 10473  9 09:40 ?        00:00:09 /bin/rbh-find /work1
> >-mtime +30 > /tmp/NAo30D.lst
> >root     38538 10473 10 09:40 ?        00:00:09 /bin/rbh-find /work1
> >-mtime +30 > /tmp/NAo30D.lst
> >root     38539 10473  9 09:40 ?        00:00:09 /bin/rbh-find /work1
> >-mtime +30 > /tmp/NAo30D.lst
> >
> >Tried to stop then start robinhood daemon, but daemon always startup those
> >processes.
> >
> >Is there any method that we can stop those processes?
> >
> I think there is something to do with the systemd configuration.
> @Dominique, can you give him an hint?

Hmm, how exactly do you start/stop the daemon? If systemd could you
paste your exact init file?

It should be something like that:
$ systemctl status robinhood
● robinhood.service - Robinhood server
   Loaded: loaded (/lib/systemd/system/robinhood.service; static; vendor 
preset: disabled)
   Active: ...
$ cat /lib/systemd/system/robinhood.service
[Unit]
Description=Robinhood server
#only works if config file is unique

[Service]
Type=simple
KillMode=mixed
EnvironmentFile=-/opt/robinhood/etc/sysconfig/robinhood
ExecStart=/opt/robinhood/sbin/robinhood $RBH_OPT
ExecReload=/bin/kill -HUP $MAINPID


Basically the KillMode=mixed here says "send sigterm to main robinhood
pid only; then after $timeout (defaults to 1m30) send sigkill to all
processes in cgroup"

I'd say you can check if the rbh-find commands are indeed in the cgroup
with systemd-cgls but your command should no longer have such a long run
time now so you shouldn't have the problem, but if you can reproduce
somehow I'm curious why the rbh-find weren't killed properly if using
the service file we provide.

--
Dominique Martinet 
==---------------------------------------------------------------
This email contains information that is for sole use of the intended recipient 
and may be confidential or privileged.If you are not the intended recipient, 
any further review, disclosure, copying, distribution, or use of this email, or 
the contents of this email is prohibited. Please notify the sender by reply 
this email and destroy the original email if your receipt of this email is in 
error.
---------------------------------------------------------------==

[http://www.acer.com/_logo_/acer_logo.jpg]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to