Ubuntu16.04 64位版本,安装Seafile Pro6.3.7,mariadb数据库,现在服务器在正常使用中,Seafile手动启动正常使用,唯独在Seafile自启动是颇费周折。
尝试服务器手册上的systemctl方式设置自启动,也查找了论坛上有关于在ExecStart=sleep 10 && opt/seafile-server-latest/seafile.sh start方法
还在该文件中设置了After=network.target mysql.service,因为我的服务器找不到mariadb.service进程
检查该进程状态为:
root@seafilepro:/etc/systemd/system# systemctl status seafile.service
● seafile.service - Seafile
Loaded: loaded (/etc/systemd/system/seafile.service; enabled; vendor preset:
Active: active (exited) since 二 2018-11-27 15:48:35 CST; 16h ago
Tasks: 0
Memory: 0B
CPU: 0
11月 27 15:48:35 seafilepro systemd[1]: Started Seafile.
11月 27 15:54:19 seafilepro systemd[1]: Started Seafile.
实际上没有启动
检查seahub.service状态为
root@seafilepro:/etc/systemd/system# systemctl status seahub.service
● seahub.service - Seafile hub
Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: e
Active: failed (Result: exit-code) since 二 2018-11-27 15:53:08 CST; 16h ago
Process: 2040 ExecStart=/opt/seafile-server-latest/seahub.sh start (code=exite
Main PID: 2040 (code=exited, status=1/FAILURE)
11月 27 15:53:08 seafilepro systemd[1]: Starting Seafile hub…
11月 27 15:53:08 seafilepro systemd[1]: seahub.service: Main process exited, code
11月 27 15:53:08 seafilepro systemd[1]: Failed to start Seafile hub.
11月 27 15:53:08 seafilepro systemd[1]: seahub.service: Unit entered failed state
11月 27 15:53:08 seafilepro systemd[1]: seahub.service: Failed with result 'exit-
然后也尝试了用init.d的方式自动运行Seafile,但也失败了,在启动日志logs/seafile.init.logs里发现了该记录:
/opt/ccnet/seafile.ini not found. Now quit
但实际上该记录指向的目录下是有这个文件的。
现在一筹莫展,求论坛里的各位先驱指点。