Unit app.service is not loaded properly: Exec format error


 

Failed to restart app.service: Unit app.service is not loaded properly: Exec format error

 

 

[Unit]
Description=Openvmi Xvfb Manger service

[Service]
ExecStart=Xvfb :8 -ac -screen 0 720x1280x24

[Install]
WantedBy=multi-user.target

 

systemctl status app.service
Warning: The unit file, source configuration file or drop-ins of app.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● app.service - Openvmi Xvfb Manger service
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)

Nov 30 16:23:36 pcl-01 systemd[1]: /lib/systemd/system/app.service:5: Executable path is not absolute: Xvfb :8 -ac -screen 0 720x1280x24

改成絕對路徑

ExecStart=ip a
[Unit]
Description=Openvmi Xvfb Manger service

[Service]
ExecStart=/usr/bin/Xvfb :8 -ac -screen 0 720x1280x24

[Install]
WantedBy=multi-user.target

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM