The start-all.sh / stop-all.sh scripts that come with Accumulo 1.10 are just one possible set of out-of-the-box scripts that you could use. If you have written or acquired systemd unit files to manage your services, you may be better off using those instead, and avoiding the built-in scripts entirely.
For me, with unit files, I would probably just do something like `pssh -h <myhostsfile> systemctl stop accumulo-<service>` or similar, rather than use the stop-all.sh script. If you want to try to shut it down "cleanly" first, then you'll definitely have to remove the "restart=always" line from your systemd unit files. In fact, I'm not sure automatic restarts are ever a good idea, since you won't necessarily have triaged the problem that caused a crash before it tries to restart, and could be perpetuating a failure or making it worse. You could also modify your launch scripts or unit files to guard on some precondition that must be met before it can be restarted (like the existence of a specific file or some other systemd unit being loaded). Systemd supports lots of conditions to check: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Conditions%20and%20Asserts When you want to do a graceful shutdown, you can change the state that is checked by the precondition, so the service doesn't restart. One example set of very simple unit files was written by me a couple of years ago for 1.x in Fedora. It did not, however, have automatic restarts. These were accompanied by a custom accumulo launch script generated by the %jpackage_script macro. See https://src.fedoraproject.org/rpms/accumulo/blob/f31/f/accumulo.spec#_369 and https://src.fedoraproject.org/rpms/accumulo/tree/f31 ; These may not be better than the unit files you're currently using, though. On Mon, Nov 1, 2021 at 9:11 AM Ligade, Shailesh [USA] <ligade_shail...@bah.com> wrote: > > Hello, > > > > I noticed that stop-all.sh script first calls accmulo admin stopAll and then > if the servers are still up, it does stop individual servers by going thru > masters, gc, slaves etc files. > > > > Since we are using systemd unit files to start the services, and our unit > files has restart=always, we can’t cleanly stop the services ☹. I understand > the unit files didn’t come with accumulo distribution. So the question is, > use of unit file supported and if they are what may be the correct way to > issue stopAll? IF anyone can share a good unit file that can be used? or do I > need to write my own stopAll script? What may be the main logic of such > script (since it calls admin stopAll and that does several different things > underneath..) > > > > -S