From 0a96e4538fe6552dd75aa939b249030f4cdfd77f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 30 Dec 2010 22:57:30 +0100 Subject: fix startup scripts, fix stop routine --- package/busybox/files/crond.init | 4 ++-- package/busybox/files/inetd.init | 2 +- package/busybox/files/syslog.init | 8 ++++---- package/busybox/files/udhcpd.init | 4 ++-- package/busybox/files/watchdog.init | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'package/busybox') diff --git a/package/busybox/files/crond.init b/package/busybox/files/crond.init index dcccb7fca..ea8faa90a 100644 --- a/package/busybox/files/crond.init +++ b/package/busybox/files/crond.init @@ -11,10 +11,10 @@ autostart) ;; start) mkdir -p /var/spool/cron - crond -c /etc/crontabs + /usr/sbin/crond -c /etc/crontabs ;; stop) - pkill crond + kill $(pgrep -f /usr/sbin/crond) ;; restart) sh $0 stop diff --git a/package/busybox/files/inetd.init b/package/busybox/files/inetd.init index 093e81f01..142fa6a03 100644 --- a/package/busybox/files/inetd.init +++ b/package/busybox/files/inetd.init @@ -14,7 +14,7 @@ start) autostop) ;; stop) - pkill inetd + kill $(pgrep -f /usr/sbin/inetd) ;; restart) sh $0 stop diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init index cbf0165c9..5f348042a 100644 --- a/package/busybox/files/syslog.init +++ b/package/busybox/files/syslog.init @@ -10,12 +10,12 @@ autostart) exec sh $0 start ;; start) - syslogd $syslogd_flags - klogd + /sbin/syslogd $syslogd_flags + /sbin/klogd ;; stop) - pkill klogd - pkill syslogd + kill $(pgrep -f /sbin/klogd) + kill $(pgrep -f /sbin/syslogd) ;; restart) sh $0 stop diff --git a/package/busybox/files/udhcpd.init b/package/busybox/files/udhcpd.init index d9627aa9d..788b5043e 100644 --- a/package/busybox/files/udhcpd.init +++ b/package/busybox/files/udhcpd.init @@ -11,10 +11,10 @@ autostart) ;; start) touch /var/udhcp.leases - udhcpd -S + /usr/sbin/udhcpd -S ;; stop) - pkill udhcpd + kill $(pgrep -f /usr/sbin/udhcpd) ;; restart) sh $0 stop diff --git a/package/busybox/files/watchdog.init b/package/busybox/files/watchdog.init index 3aad38380..5fadef046 100644 --- a/package/busybox/files/watchdog.init +++ b/package/busybox/files/watchdog.init @@ -10,10 +10,10 @@ autostart) exec sh $0 start ;; start) - watchdog $watchdog_flags /dev/watchdog + /usr/sbin/watchdog $watchdog_flags /dev/watchdog ;; stop) - pkill watchdog + kill $(pgrep -f /usr/sbin/watchdog) ;; restart) sh $0 stop -- cgit v1.2.3