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

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