psad-2.2.4-var-run.patch 589 B

1234567891011121314151617181920
  1. --- a/init-scripts/psad-init.gentoo
  2. +++ b/init-scripts/psad-init.gentoo
  3. @@ -1,4 +1,4 @@
  4. -#!/sbin/runscript
  5. +#!/sbin/openrc-run
  6. ## Copyright 2006 Michael Rash
  7. # Distributed under the terms of the GNU General Public License v2
  8. # Author: Michael Rash
  9. @@ -19,6 +19,10 @@
  10. start() {
  11. checkconfig || return 1
  12. + checkpath -q -d -m 755 -o root:root /run/psad
  13. + checkpath -q -d -m 755 -o root:root /var/lib/psad
  14. + checkpath -q -d -m 755 -o root:root /var/log/psad
  15. + [ -p /var/lib/psad/psadfifo ] || mknod -m 600 /var/lib/psad/psadfifo p
  16. ebegin "Starting ${SVCNAME}"
  17. start-stop-daemon \