applications/luci_splash: fix restart of luci-splashd
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Feb 2009 01:43:47 +0000 (01:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Feb 2009 01:43:47 +0000 (01:43 +0000)
applications/luci-splash/root/etc/init.d/luci_splash

index 2d563d1a79d6bc82bf1cbdd6b0cb2457bc1572c2..fe451d08d5f8f200b83ca08b37fee8eb765d861f 100755 (executable)
@@ -72,7 +72,7 @@ start() {
        }
 
        ### Start the splash httpd
-       start-stop-daemon -S -b -q -x /usr/bin/luci-splashd
+       start-stop-daemon -S -m -p /var/run/luci-splashd.pid -b -q -x /usr/bin/luci-splashd
 }
 
 iface_del() {
@@ -97,7 +97,7 @@ stop() {
        iptables -t nat -X luci_splash_prerouting
 
        ### Stop the splash httpd
-       start-stop-daemon -K -q -x /usr/bin/luci-splashd
+       start-stop-daemon -K -p /var/run/luci-splashd.pid -s KILL -q
        
        sed -ie '/\/usr\/sbin\/luci-splash sync/d' /var/spool/cron/crontabs/root
 }