1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $NetBSD$
| 3# $NetBSD: newsyslog,v 1.5 2002/03/24 15:51:26 lukem Exp $ 4# $FreeBSD: head/etc/rc.d/newsyslog 98184 2002-06-13 22:14:37Z gordon $
|
4# 5 6# PROVIDE: newsyslog 7# REQUIRE: mountcritremote sysdb
| 5# 6 7# PROVIDE: newsyslog 8# REQUIRE: mountcritremote sysdb
|
8# BEFORE: syslogd
| 9# BEFORE: syslogd SERVERS
|
9 10. /etc/rc.subr 11 12name="newsyslog"
| 10 11. /etc/rc.subr 12 13name="newsyslog"
|
| 14rcvar=$name
|
13required_files="/etc/newsyslog.conf"
| 15required_files="/etc/newsyslog.conf"
|
14start_precmd="checkyesno newsyslog"
| |
15start_cmd="newsyslog_start" 16stop_cmd=":" 17 18newsyslog_start() 19{ 20 echo -n "Trimming log files:"
| 16start_cmd="newsyslog_start" 17stop_cmd=":" 18 19newsyslog_start() 20{ 21 echo -n "Trimming log files:"
|
21 /usr/bin/newsyslog -s $newsyslog_flags
| 22 /usr/bin/newsyslog -s $rc_flags
|
22 echo " done." 23} 24 25load_rc_config $name 26run_rc_command "$1"
| 23 echo " done." 24} 25 26load_rc_config $name 27run_rc_command "$1"
|