当前位置:网站首页>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执行脚本需要确认其解释器。
边栏推荐
- ^33 variable promotion and function promotion interview questions
- Malicious code analysis practice - lab03-02 DLL analysis
- Stream as a return value in WCF - who disposes of it- Stream as a return value in WCF - who disposes it?
- 元宇宙链游与传统游戏的区别
- k53.第二章 基于二进制包安装kubernetes v1.22 --集群部署
- k52.第一章 基于kubeadm安装kubernetes v1.22 -- 集群部署
- FPGA开发——Hello_world例程
- 890. 查找和替换模式
- go基于阿里云实现发送短信
- 程序分析与优化 - 6 循环优化
猜你喜欢
随机推荐
元宇宙链游与传统游戏的区别
JS pull-up loading more problems encountered in normal execution
Redis keys in PHP
MySQL performance test (slow query log)
2022-06-11: note that in this document, graph is not the meaning of adjacency matrix, but a bipartite graph. In the adjacency matrix with length N, there are n points, matrix[i][j]
Common port description
Php中redis的keys问题
Get start date and end date for all quarters of the year
Leetcdoe 2037. Make each student have the minimum number of seat movements (yes, once)
Leetcode 2169. Get operands of 0
FPGA-按键实验
PHP Apple purchase verification steps
Leetcode2154. Multiply the found value by 2 (binary search)
Leetcode 162 Looking for peak value (June 11, 2022)
redis 总结
AI - face
Index query efficiency of MySQL
Valentina Studio Pro for MAC (MAC database management software)
^33变量提升和函数提升面试题
Malicious code analysis practice - use IDA pro to analyze lab05-01 dll









