Are there any differences between SIGUSR1 vs USR1 when it comes to killing a process
Ex
kill -SIGUSR1 {pid}
or
kill -USR1 {pid}
Are there any differences between SIGUSR1 vs USR1 when it comes to killing a process
Ex
kill -SIGUSR1 {pid}
or
kill -USR1 {pid}
There is no difference (apart from the number of characters you have to type).
Citing e.g. https://man7.org/linux/man-pages/man1/kill.1@@procps-ng.html
Alternate signals may be specified in three ways:
-9,-SIGKILLor-KILL.
Not all variants of the manual page contain this explanation.
Matter of fact there is most definitely a difference. Certain process will only listen for USR1. An Example of this is nginx. Depending on the program that you are trying to kill make sure it has the proper listener for the signal that your sending with kill.
For instance if your doing a log rotation of nginx. Nginx will not listen for SIGUSR1. Found this out the hard way.
/var/log/nginx/*.log {
daily
rotate 10
compress
create 0640 www-data adm
missingok
notifempty
# Signal the running nginx process exactly once to make it use the new log file.
sharedscripts
postrotate
[ -f /var/run/nginx.pid ] && kill -USR1 $(cat /var/run/nginx.pid)
endscript
}