source: clfs-embedded/bootscripts/clfs/rc.d/init.d/syslog@ 18bce0c

Last change on this file since 18bce0c was 1933be2, checked in by Maarten Lankhorst <mlankhorst@…>, 15 years ago

bootscripts: Updates, and add a network bridge startup file

  • Property mode set to 100755
File size: 467 bytes
RevLine 
[a44b91b]1#!/bin/ash
2
3# Syslog Startup Script
4#
5
6. /etc/rc.d/init.d/functions
7
[1933be2]8SYSLOG_ROTATE_SIZE=65536
[a44b91b]9
10case "$1" in
11start)
12 echo -n "Starting syslogd: "
13 syslogd -m 0 -s $SYSLOG_ROTATE_SIZE -L
14 check_status
15 echo -n "Starting klogd: "
16 klogd
17 check_status
18 ;;
19stop)
20 echo -n "Stopping klogd: "
21 killall klogd
22 check_status
23 echo -n "Stopping syslogd: "
24 killall syslogd
25 check_status
26 ;;
27restart)
28 $0 stop
29 $0 start
30 ;;
31*)
32 echo "Usage: $0 {start|stop|restart}"
33 exit 1
34esac
Note: See TracBrowser for help on using the repository browser.