[package] fix netatalk init script (#7669)
[openwrt/svn-archive/archive.git] / net / netatalk / files / afpd.init
index 8f8ea222248555af95b36f25ec4bba756153d7fe..bc42b350b891bb908e54263c2f0813756afac8f1 100644 (file)
@@ -14,12 +14,11 @@ start()
 
 stop()
 {
-       killall afpd
+       kill `cat "${PIDFILE}"`
        killall cnid_metad
 }
 
 reload()
 {
-       kill -s HUP `cat ${PIDFILE}`
-       start
+       kill -s HUP `cat "${PIDFILE}"`
 }