一则systemctl service诡异问题
安装完glibc2.8后,程序可以正常运行了,但发现作为服务service一直报以下错误
Jun 04 15:46:31 novalocal systemd[1]: Started xxx Service.
Jun 04 15:46:31 novalocal systemd[1]: xxx.service: main process exited, code=exited, status=127/n/a
Jun 04 15:46:31 novalocal systemd[1]: Unit xxx.service entered failed state.
Jun 04 15:46:31 novalocal systemd[1]: xxx.service failed.
Jun 04 15:46:37 novalocal systemd[1]: xxx.service holdoff time over, scheduling restart.
Jun 04 15:46:37 novalocal systemd[1]: Stopped xxxService.
Jun 04 15:46:37 novalocal systemd[1]: Started xxxService.
Jun 04 15:46:37 novalocal systemd[1]: xxx.service: main process exited, code=exited, status=127/n/a
Jun 04 15:46:37 novalocal systemd[1]: Unit xxx.service entered failed state.
Jun 04 15:46:37 novalocal systemd[1]: xxx.service failed.
各种怀疑,各种重新编辑.service文件,各种重载重新运行都无效
sudo systemctl daemon-reload
sudo systemctl restart your-service.service
于是。。。只能怀疑系统错乱有问题,系统是CentOS7.9,直接重启系统
reboot
噢,重启后,居然正常了。。。无语