centos7中svn服务启动问题
本人svn服务是通过yum安装的,安装后,自定义的svn库路径为/opt/svn/repos,并且通过svnserve -d -r /opt/svn/repos启动服务成功,并且测试svn也是好用的。
问题是:最近学习systemctl命令,通过systemctl status svnserve.service命令查看svn状态,提示以下错误信息,不知道为什么会有如下错误发生:
-------------------------------------------------------------------------------------------------------------------------------------------------------
[root@localhost /]# systemctl status svnserve.service
svnserve.service - Subversion protocol daemon
Loaded: loaded (/usr/lib/systemd/system/svnserve.service; enabled)
Active: failed (Result: exit-code) since 一 2015-11-16 10:22:30 CST; 33min ago
Process: 3960 ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $OPTIONS (code=exited, status=1/FAILURE)
11月 16 10:22:29 localhost.localdomain svnserve[3960]: svnserve: 根路径“/var/svn”不存在,或者不是目录。
11月 16 10:22:29 localhost.localdomain svnserve[3960]: DIGEST-MD5 common mech free
11月 16 10:22:29 localhost.localdomain systemd[1]: svnserve.service: control process exited, code=exited status=1
11月 16 10:22:30 localhost.localdomain systemd[1]: Failed to start Subversion protocol daemon.
11月 16 10:22:30 localhost.localdomain systemd[1]: Unit svnserve.service entered failed state.