一则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

噢,重启后,居然正常了。。。无语

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值