Browse Source

- move syslogd init script away from skel-root

master
vanhofen 6 years ago
parent
commit
c9377b9582
  1. 0
      archive-imagefiles/scripts/syslogd.init
  2. 1
      make/rootfs.mk
  3. 7
      make/system-scripts.mk
  4. 23
      skel-root/coolstream/hd1/etc/init.d/syslogd
  5. 23
      skel-root/coolstream/hd2/etc/init.d/syslogd

0
skel-root/armbox/hd51/etc/init.d/syslogd → archive-imagefiles/scripts/syslogd.init

1
make/rootfs.mk

@ -133,7 +133,6 @@ endif
$(CD) $(ROOTFS)/etc/init.d; \
ln -sf fstab K99fstab; \
ln -sf fstab S01fstab; \
ln -sf syslogd K98syslogd; \
ln -sf networking K99networking
ifeq ($(BOXSERIES), hd2)
$(CD) $(ROOTFS)/etc; \

7
make/system-scripts.mk

@ -12,7 +12,8 @@ init-scripts: \
$(TARGET_DIR)/etc/init.d/crond \
$(TARGET_DIR)/etc/init.d/hostname \
$(TARGET_DIR)/etc/init.d/inetd \
$(TARGET_DIR)/etc/init.d/swap
$(TARGET_DIR)/etc/init.d/swap \
$(TARGET_DIR)/etc/init.d/syslogd
$(TARGET_DIR)/etc/init.d/globals:
install -D -m 0644 $(IMAGEFILES)/scripts/init.globals $@
@ -52,6 +53,10 @@ ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd51))
ln -sf swap $(TARGET_DIR)/etc/init.d/K99swap
endif
$(TARGET_DIR)/etc/init.d/syslogd:
install -D -m 0755 $(IMAGEFILES)/scripts/syslogd.init $@
ln -sf syslogd $(TARGET_DIR)/etc/init.d/K98syslogd
# -----------------------------------------------------------------------------
scripts: \

23
skel-root/coolstream/hd1/etc/init.d/syslogd

@ -1,23 +0,0 @@
#!/bin/sh
# you can set options in /etc/profile.locale, variable SYSLOGD_OPTS
#
# without options and without /var/log (!), syslogd will simply
# log to the console. If /var/log/ exists, it will log to /var/log/messages
. /etc/init.d/globals
case "$1" in
start)
/sbin/syslogd $SYSLOGD_OPTS
;;
stop)
killall syslogd
;;
restart)
$0 stop
$0 start
;;
*)
echo "[$BASENAME] Usage: $0 {start|restart|stop}"
;;
esac

23
skel-root/coolstream/hd2/etc/init.d/syslogd

@ -1,23 +0,0 @@
#!/bin/sh
# you can set options in /etc/profile.locale, variable SYSLOGD_OPTS
#
# without options and without /var/log (!), syslogd will simply
# log to the console. If /var/log/ exists, it will log to /var/log/messages
. /etc/init.d/globals
case "$1" in
start)
/sbin/syslogd $SYSLOGD_OPTS
;;
stop)
killall syslogd
;;
restart)
$0 stop
$0 start
;;
*)
echo "[$BASENAME] Usage: $0 {start|restart|stop}"
;;
esac
Loading…
Cancel
Save