source: clfs-embedded/bootscripts/clfs/etc/rc.d/init.d/syslog@ 8ffda01

Last change on this file since 8ffda01 was a44b91b, checked in by Jim Gifford <clfs@…>, 18 years ago

Added CLFS 3.x bootscripts

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