Proper way to shut down (Kill) SequenceServer?

I finally got SequenceServer install to run on boot without having to log in (script to launch it which is invoked by a script in init.d). But now I’m experiencing errors shutting down the machine, and I’ve traced it to SequenceServer not shutting down. What’s the correct way to shut down the app? I rarely have to power-cycle, but I want to automate this as much as possible - thanks!

I finally got SequenceServer install to run on boot without having to log in
(script to launch it which is invoked by a script in init.d). But now I'm
experiencing errors shutting down the machine, and I've traced it to
SequenceServer not shutting down. What's the correct way to shut down the
app? I rarely have to power-cycle, but I want to automate this as much as
possible - thanks!

All processes are send SIGTERM signal on system shutdown.

From the startup (init.d) script:

1. write the PID of SS process to a file when launched
2. trap (attach a handler to) SIGTERM which reads this PID file
and does `kill $pid`

I am sure there will be a few scripts in your /etc/init.d that you
could see for reference. I would look at startup scripts of Apache or
MySQL.

Maybe SS should do this out of the box.

-- Priyam