当前位置:网站首页>systemctl里万恶的203
systemctl里万恶的203
2022-06-12 11:12:00 【奇妙之二进制】
如前面的两个例子,在执行systemctl时经常出现问题
例如
[[email protected] system]# systemctl status changeconfig.service -l
changeconfig.service - NIC Saver
Loaded: loaded (/usr/lib/systemd/system/changeconfig.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-10-10 05:11:51 EDT; 1min 5s ago
Process: 10949 ExecStart=/usr/bin/changename (code=exited, status=203/EXEC)
Main PID: 10949 (code=exited, status=203/EXEC)
Oct 10 05:11:51 z.cent7 systemd[1]: Starting NIC Saver...
Oct 10 05:11:51 z.cent7 systemd[1]: changeconfig.service: main process exited, code=exited, status=203/EXEC
Oct 10 05:11:51 z.cent7 systemd[1]: Failed to start NIC Saver.
Oct 10 05:11:51 z.cent7 systemd[1]: Unit changeconfig.service entered failed state.
处理方法:
/usr/bin/changename发现前面忘记加如下语句
#!/bin/sh
原因:systemctl执行脚本需要确认其解释器。
边栏推荐
- 890. 查找和替换模式
- AcWing 128. 编辑器(对顶栈 实现序列内部指定位置高效修改)
- AcWing 1986. 镜子(模拟,环图)
- 卡鱼刺别再喝醋吞米饭了!教你2招,让鱼刺安全“跑出来”
- 淺談調和形狀上下文特征HSC對3DSC的改進
- Why check the @nonnull annotation at run time- Why @Nonnull annotation checked at runtime?
- M-Arch(番外12)GD32L233评测-CAU加解密(捉弄下小编)
- 元宇宙系统搭建与构造
- 重量级代理缓存服务器Squid
- M-Arch(番外11)GD32L233评测-PWM驱动有源蜂鸣器
猜你喜欢
随机推荐
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
Leetcode 2169. Get operands of 0
Clickhouse column basic data type description
【CF1392D】D. Omkar and Bed Wars(环形与后效性dp)
读mysql45讲-自我总结(部分)
Epidemic home office experience | community essay solicitation
[machine learning] practice of logistic regression classification based on Iris data set
Leetcdoe 2037. Make each student have the minimum number of seat movements (yes, once)
Redis summary
The reason why scanf return value is ignored and its solution
AcWing 135. 最大子序和(前缀和 + 单调队列求定长区间最小值)
Index query efficiency of MySQL
MySQL performance test (slow query log)
基于QT的旅行查询与模拟系统
On the improvement of 3dsc by harmonic shape context feature HSC
Module 8 job
SharDingJDBC-5.1.0按月水平分表+读写分离,自动创表、自动刷新节点表
Don't swallow rice with vinegar! Teach you 2 moves to make the fish bones "run out" safely
Clickhouse column basic data type description
go基于腾讯云实现发送短信









