Folks,
it's driving me crazy again !!!
Following problem:
We're using Shell Scripts to start/stop applications on our servers.
Some of them include unmounting several filesystems as well.
Now, there are some systems where - after shutting down the application - several processes remain active, preventing us from doing an umount.
The idea was to simply use
However this is not working. No matter how often we repeat the command within the script.
But (!) if I enter the commands
directly over the command line everything is fine.
Any idea what's wrong here ?
Another approach was to fetch the PIDs from
and then do something like
but the output is extremely weird and I haven't been able to grab the PIDs from it ...
Regards,
Thomas
it's driving me crazy again !!!
Following problem:
We're using Shell Scripts to start/stop applications on our servers.
Some of them include unmounting several filesystems as well.
Now, there are some systems where - after shutting down the application - several processes remain active, preventing us from doing an umount.
The idea was to simply use
Code:
fuser -ck /name_of_filesystem
However this is not working. No matter how often we repeat the command within the script.
But (!) if I enter the commands
Code:
fuser -ck /name_of_filesystem
umount /name_of_filesystem
directly over the command line everything is fine.
Any idea what's wrong here ?
Another approach was to fetch the PIDs from
Code:
fuser -cv /name_of_filesystem
and then do something like
Code:
kill -9 $PIDs
but the output is extremely weird and I haven't been able to grab the PIDs from it ...
Regards,
Thomas