I created a service script in the /etc/init.d/ directory, but the reload function in the script cannot be executed.

  linux, question

/etc/init.d/shadowsocks

bash#!  /bin/sh
 
 start(){
 ssserver -c /etc/shadowsocks.json -d start
 }
 
 stop(){
 ssserver -c /etc/shadowsocks.json -d stop
 }
 case "$1" in
 start)
 start
 ;  ;
 stop)
 stop
 ;  ;
 reload)
 stop
 start
 ;  ;
 *)
 echo "Usage: $0 {start|reload|stop}"
 exit 1
 ;  ;
 esac

If this script is executed separately, start|reload|stop can be executed normally.
But withservice shadowsocks reloadNo, start|stop is normal.
Promptreload: Job is not running: shadowsocks
What is the situation?

It seems that the error is reported by ssserver-c/etc/shadow socks.json-d stop, if stop is executed separately, will this error also be reported? First, judge whether ssserver is running.