Sugiro usar pkill , com o sinalizador -f para corresponder ao comando inteiro:
pkill -f /var/appname.jar
Teste primeiro com
pgrep -af /var/appname.jar
De man pkill :
-f, --full
The pattern is normally only matched against the process name.
When -f is set, the full command line is used.