diff options
author | 2003-06-08 19:21:14 +0000 | |
---|---|---|
committer | 2003-06-08 19:21:14 +0000 | |
commit | 4a078d6ff3be962d6d1343e7004f6d7eeb59f0ff (patch) | |
tree | 0b4ac608ce46d9098aa5aa8f647c234d3926f3fc /sys-apps/sal-client/files | |
parent | fix silly typo (diff) | |
download | historical-4a078d6ff3be962d6d1343e7004f6d7eeb59f0ff.tar.gz historical-4a078d6ff3be962d6d1343e7004f6d7eeb59f0ff.tar.bz2 historical-4a078d6ff3be962d6d1343e7004f6d7eeb59f0ff.zip |
created the rc script, cleaned up the auditd.conf (/etc/conf.d) and put some warnings in the ebuilds
Diffstat (limited to 'sys-apps/sal-client/files')
-rw-r--r-- | sys-apps/sal-client/files/auditd.confd | 7 | ||||
-rw-r--r-- | sys-apps/sal-client/files/sal-client-init | 40 |
2 files changed, 29 insertions, 18 deletions
diff --git a/sys-apps/sal-client/files/auditd.confd b/sys-apps/sal-client/files/auditd.confd index 9ee6d6ac3018..0e8054effaf2 100644 --- a/sys-apps/sal-client/files/auditd.confd +++ b/sys-apps/sal-client/files/auditd.confd @@ -1,7 +1,12 @@ # 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/auditd.confd,v 1.1 2003/06/08 18:06:20 zhen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sal-client/files/auditd.confd,v 1.2 2003/06/08 19:21:03 zhen Exp $ +# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING!! +# Temporary log storage directory TMP_DIR="/var/lib/auditd" + +#Base file name for temporary logfiles FILE="audit" +AUDITD_OPTS=" -d $TMP_DIR -b $FILE -r" diff --git a/sys-apps/sal-client/files/sal-client-init b/sys-apps/sal-client/files/sal-client-init index e0975b1dd8b9..e58131fe4eeb 100644 --- a/sys-apps/sal-client/files/sal-client-init +++ b/sys-apps/sal-client/files/sal-client-init @@ -1,24 +1,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.1 2003/06/08 18:06:20 zhen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sal-client/files/sal-client-init,v 1.2 2003/06/08 19:21:03 zhen Exp $ -TMP_DIR="tmp" -FILE="audit" +# NB: Config is in /etc/conf.d/auditd -# forcibly delete the temporary directory if needed -if [ -e $TMP_DIR ] -then - rm -rf $TMP_DIR -fi +depend() { + use net +} -# the below assumes that the certificate authority directory is /CA +start() { + ebegin "Starting auditd" + + # forcibly delete the temporary files if needed + if [ -e $TMP_DIR ]; then + rm -rf $TMP_DIR/* + fi -# the audit daemon run as a background process -# automatically creates the temporary directory if needed -./daemon/auditd -d $TMP_DIR -b $FILE -r & - -# the audit client run as a foreground process -# sends the audit data to the terminal (stdout) -# to send audit data to a server replace -v with -a x.x.x.x -./client/auditclient -e -d $TMP_DIR -b $FILE -v + 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" +} |