summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/apparmor-parser/files/aaeventd')
-rwxr-xr-xsys-apps/apparmor-parser/files/aaeventd40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-apps/apparmor-parser/files/aaeventd b/sys-apps/apparmor-parser/files/aaeventd
new file mode 100755
index 0000000..efe9cc3
--- /dev/null
+++ b/sys-apps/apparmor-parser/files/aaeventd
@@ -0,0 +1,40 @@
+#!/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
+}