summaryrefslogtreecommitdiff
blob: e58131fe4eeb5659e5166ffd7a771237b75bd098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sal-client/files/sal-client-init,v 1.2 2003/06/08 19:21:03 zhen Exp $

# NB: Config is in /etc/conf.d/auditd

depend() {
	use net
}

start() {
	ebegin "Starting auditd"
	
	# forcibly delete the temporary files if needed
  	if [ -e $TMP_DIR ]; then
		rm -rf $TMP_DIR/*
	fi

	start-stop-daemon --start --quiet --exec /usr/sbin/auditd -- ${AUDITD_OPTS} &
	/bin/pidof auditd > /var/run/auditd.pid
	eend $? "Failed to start auditd"
				
}

stop() {
	ebegin "Stopping auditd"
	/bin/killall -s9 auditd
	eend $? "Failed to stop auditd"
}