Есть проблема с запуском svnserve через скрипт init.d
svnroot # /etc/init.d/svnserve start
* Caching service dependencies ... [ ok ]
* Starting svnserve ... [ ok ]
svnroot # /etc/init.d/svnserve status
* status: crashed
svnroot # /etc/init.d/svnserve stop
* Stopping svnserve ... [ ok ]/etc/init.d/svnserve
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting svnserve"
# Ensure that we run from a readable working dir, and that we do not
# lock filesystems when being run from such a location.
cd /
start-stop-daemon --start --quiet --background --make-pidfile \
--pidfile /var/run/svnserve.pid --exec /usr/bin/svnserve \
--chuid ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache} -- \
--foreground --daemon ${SVNSERVE_OPTS:---root=/home/svnroot/repos/ --config-file=/home/svnroot/svnserve.conf --log-file=/var/log/svnserve.log}
eend $?
}
stop() {
ebegin "Stopping svnserve"
start-stop-daemon --stop --quiet --pidfile /var/run/svnserve.pid
eend $?
}/etc/conf.d/svnserve
SVNSERVE_OPTS="--root=/home/svnroot/repos/ --config-file=/home/swnroot/svnserve.conf --log-file=/var/log/svnserve.log"
SVNSERVE_USER="apache"
SVNSERVE_GROUP="apache"C правами на директорию все нормально. Когда запускаю вручную, то все работает нормально
#svnserve -d --root /home/svnroot/repos/ --config-file /home/svnroot/svnserve.conf --log-file /var/log/svnserve.logКуда копать и как дебажить скрипт init.d?
