Initial commit

This commit is contained in:
lw-everestlinux
2022-09-13 17:52:14 -04:00
commit 76ce8eab95
8 changed files with 328 additions and 0 deletions

34
clfs/rc.d/init.d/syslog Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/ash
# Syslog Startup Script
#
. /etc/rc.d/init.d/functions
SYSLOG_ROTATE_SIZE=65536
case "$1" in
start)
echo -n "Starting syslogd: "
syslogd -m 0 -s $SYSLOG_ROTATE_SIZE -L
check_status
echo -n "Starting klogd: "
klogd
check_status
;;
stop)
echo -n "Stopping klogd: "
killall klogd
check_status
echo -n "Stopping syslogd: "
killall syslogd
check_status
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac