dsh (distributed/dancer shell): remote processes keep running after stopping execution

7 views
Skip to first unread message

Developer Airpim

unread,
Feb 9, 2017, 5:01:13 AM2/9/17
to Debian
I'd like an advise about a problem with "dsh": running some commands and then stopping it with "CTRL+C" I find some processes keep running on remote serves.

--------------------------------------------------

Here are the specs:

command:
dsh -M -g "servers" -c "tail -f /var/log/prefix*" 
having a group (see below) that point to three different servers with some "log files" starting with "prefix" (e.g. prefix1.log, prefix2.log, ...)


configuration files:

/etc/dsh/dsh.conf

verbose = 0 
remoteshell =rsh  
showmachinenames = 0
waitshell=1



/etc/dsh/machines.list

localhost



/etc/dsh/group/servers

root@server-1
root@server-2
root@server-3

note that from the machine running dsh, a password-less ssh connection to them is made through the use of ssh keys


The problem is that if I type CTRL+C to stop dsh, sometimes on some servers "tail" keeps running(!)


Reply all
Reply to author
Forward
0 new messages