求助:按照 “快速开始”编写服务文件,启动就报错,单独运行cloudreve没问题
cloudreve.service:
[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
Wants=network.target
[Service]
WorkingDirectory=/home/cloudreve
ExecStart=/home/cloudreve/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
[root@centos8 system]# systemctl status cloudreve
● cloudreve.service - Cloudreve
Loaded: loaded (/usr/lib/systemd/system/cloudreve.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-11-17 16:31:30 CST; 5s ago
Docs: https://docs.cloudreve.org
Process: 30350 ExecStart=/home/cloudreve/cloudreve (code=exited, status=203/EXEC)
Main PID: 30350 (code=exited, status=203/EXEC)
Nov 17 16:31:30 centos8 systemd[1]: Started Cloudreve.
Nov 17 16:31:30 centos8 systemd[1]: cloudreve.service: Main process exited, code=exited, status=203/EXEC
Nov 17 16:31:30 centos8 systemd[1]: cloudreve.service: Failed with result 'exit-code'.