当前位置:网站首页>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执行脚本需要确认其解释器。
边栏推荐
- 元宇宙系统搭建与构造
- AcWing 128. Editor (to effectively modify the specified position in the top stack)
- AcWing 1912. 里程表(枚举)
- (37) How bee uses different data source instances at the same time
- Valentina Studio Pro for MAC (MAC database management software)
- InfoQ geek media's 15th anniversary solicitation |position:fixed virtual button cannot take effect after being triggered. Problem analysis and Solution Exploration
- Malicious code analysis practice - use IDA pro to analyze lab05-01 dll
- ^33变量提升和函数提升面试题
- 无限生长,我们都将奔赴未来 | InfoQ中国成立15周年
- mysql中的索引show index from XXX每个参数的意义
猜你喜欢

Common methods of string class

Bug easily ignored by recursion

深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)

AcWing 135. Maximum subsequence sum (prefix sum + monotone queue to find the minimum value of fixed length interval)

Leetcode 2169. Get operands of 0

M-Arch(番外12)GD32L233评测-CAU加解密(捉弄下小编)

Malicious code analysis practice - use IDA pro to analyze lab05-01 dll
![[machine learning] practice of logistic regression classification based on Iris data set](/img/c6/0233545d917691b8336f30707e4636.png)
[machine learning] practice of logistic regression classification based on Iris data set

M-arch (fanwai 11) gd32l233 evaluation PWM driven active buzzer

【clickhouse专栏】基础数据类型说明
随机推荐
How to upload the video on the computer to the mobile phone without network
go基于腾讯云实现发送短信
【clickhouse专栏】基础数据类型说明
^34 scope interview questions
selenium使用代理IP
PHP Apple internal purchase callback processing
Set SVG color
深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)
Leetcode 162 Looking for peak value (June 11, 2022)
NFT数字藏品的可验证性和稀缺性
分布式存储探索
AI - face
On the improvement of 3dsc by harmonic shape context feature HSC
Reading mysql45 lecture - self summary (part)
FPGA key experiment
M-Arch(番外10)GD32L233评测-SPI驱动DS1302
M-arch (fanwai 11) gd32l233 evaluation PWM driven active buzzer
Redis keys in PHP
Malicious code analysis practice - lab06-01 exe~Lab06-04. Exe dynamic analysis
UI自动化测试中比较少见的异常记录