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