svnserve.initd 579 B

123456789101112131415161718192021
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2015 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License, v2 or later
  4. description="svn server"
  5. pidfile="/run/svnserve/svnserve.pid"
  6. command="/usr/bin/svnserve"
  7. command_args="--foreground --daemon ${SVNSERVE_OPTS:---root=/srv/svn}"
  8. command_background="true"
  9. start_stop_daemon_args="-u ${SVNSERVE_USER:-http} -g ${SVNSERVE_GROUP:-http}"
  10. depend() {
  11. need net
  12. }
  13. start_pre() {
  14. # Ensure that we run from a readable working dir, and that we do not
  15. # lock filesystems when being run from such a location.
  16. cd /
  17. }