新问题,守护进程没法打开
[root@whitewater /]# uname -a
Linux whitewater 4.18.0-193.el8.x86_64 #1 SMP Fri May 8 10:59:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux```
文件:
[root@whitewater /]# vim /usr/lib/systemd/system/cloudreve.service
t]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
Wants=network.target
[Service]
WorkingDirectory=/opt/cloudreve
ExecStart=/opt/cloudreve/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
状态:
[root@whitewater /]# systemctl status cloudreve
Warning: The unit file, source configuration file or drop-ins of cloudreve.service changed on d>
● cloudreve.service
Loaded: loaded (/usr/lib/systemd/system/cloudreve.service; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-08-06 11:48:03 CST; 41min ago
Process: 105977 ExecStart=/PATH_TO_CLOUDREVE/cloudreve (code=exited, status=203/EXEC)
Main PID: 105977 (code=exited, status=203/EXEC)
Aug 06 11:48:03 whitewater systemd[1]: Started cloudreve.service.
Aug 06 11:48:03 whitewater systemd[1]: cloudreve.service: Main process exited, code=exited, sta>
Aug 06 11:48:03 whitewater systemd[1]: cloudreve.service: Failed with result 'exit-code'.
Aug 06 11:48:25 whitewater systemd[1]: /usr/lib/systemd/system/cloudreve.service:1: Missing '='.
Aug 06 11:50:58 whitewater systemd[1]: /usr/lib/systemd/system/cloudreve.service:1: Missing '='.
Aug 06 12:22:25 whitewater systemd[1]: /usr/lib/systemd/system/cloudreve.service:1: Missing '='.
Aug 06 12:25:57 whitewater systemd[1]: /usr/lib/systemd/system/cloudreve.service:1: Missing '='.
Aug 06 12:27:33 whitewater systemd[1]: /usr/lib/systemd/system/cloudreve.service:1: Missing '='.
报错:Failed to enable unit: File cloudreve.service: Invalid argument