root/trunk/freewrt/package/busybox/files/syslog.init

Revision 3514, 397 bytes (checked in by tg, 5 years ago)

• remove the ip-up script from openntpd: use rdate for that

restarting an ntp dæmon is exceptionally stupid, because
it needs a very long time to stabilise afterwards again

• change the default config logic for a few packages from

| foo="NO" # foo
| foo_flags="-foo -bar" # foo_flags
to
| foo_flags="NO" # e.g. "-foo -bar"
which is *much* more BSD-rc.conf-like: services which
take flags are disabled by setting these to "NO", and
almost no services still use their name as variable,
since almost all services take flags

• bump dashvers of affected packages

Line 
1 #!/bin/sh
2 test x"$1" = x"really" || exec /bin/mksh "$0" really "$@"
3 shift
4 #FWINIT 05
5 . /etc/rc.conf
6
7 case $1 in
8 autostop) ;;
9 autostart)
10         [[ $syslogd_flags = NO ]] && exit 0
11         exec mksh $0 really start
12         ;;
13 start)
14         syslogd $syslogd_flags
15         klogd
16         ;;
17 stop)
18         killall klogd
19         killall syslogd
20         ;;
21 restart)
22         sh $0 stop
23         sh $0 start
24         ;;
25 *)
26         echo "Usage: $0 {start | stop | restart}"
27         exit 1
28         ;;
29 esac
30 exit $?
Note: See TracBrowser for help on using the browser.