Create the file stop-proc
below:
#!/bin/bash
SIG=${0##*/} ## basename only (name of the file itself, no dirs)
SIG=${SIG%-*} ## remove filename suffix. "-*" is a glob pattern ("stop" in this case)
SIG=${SIG^^} ## UPPERCASE all letters
## read process from command line or use this as default.