b8d2a0230e
and the skel.* files
41 lines
824 B
Plaintext
Executable File
41 lines
824 B
Plaintext
Executable File
#!/sbin/runscript
|
|
# Copyright 1999-2006 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
APPARMOR_FUNCTIONS=/lib/apparmor/rc.apparmor.functions
|
|
APPARMOR_HELPERS=/lib/apparmor/rc.helper.functions
|
|
if [ -f "${APPARMOR_HELPERS}" -a -f "${APPARMOR_FUNCTIONS}" ]; then
|
|
source ${APPARMOR_HELPERS}
|
|
source ${APPARMOR_FUNCTIONS}
|
|
else
|
|
eend 1 "Unable to find AppArmor initscript functions"
|
|
fi
|
|
|
|
depend() {
|
|
need apparmor
|
|
use logger dns
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting aaeventd (AppArmor Event Daemon)"
|
|
|
|
if [ "${APPARMOR_ENABLE_AAEVENTD}" = "no" ]; then
|
|
eend 1 " aaeventd disabled in ${APPARMOR_CONF}."
|
|
fi
|
|
|
|
start_sd_event
|
|
eend $waserror
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping aaeventd (AppArmor Event Daemon)"
|
|
stop_sd_event
|
|
eend $waserror
|
|
}
|
|
|
|
restart() {
|
|
srv_stop
|
|
srv_start
|
|
}
|