summaryrefslogtreecommitdiff
path: root/package/busybox
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
commit0a96e4538fe6552dd75aa939b249030f4cdfd77f (patch)
tree8c998c4ab78ea4b60d433847a9632466b9a814a4 /package/busybox
parent845317b460ee99ad633534cad4de72404af7e30b (diff)
fix startup scripts, fix stop routine
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/files/crond.init4
-rw-r--r--package/busybox/files/inetd.init2
-rw-r--r--package/busybox/files/syslog.init8
-rw-r--r--package/busybox/files/udhcpd.init4
-rw-r--r--package/busybox/files/watchdog.init4
5 files changed, 11 insertions, 11 deletions
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