当前位置:网站首页>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执行脚本需要确认其解释器。
边栏推荐
猜你喜欢

MATLAB中stairs函数使用

k52.第一章 基于kubeadm安装kubernetes v1.22 -- 集群部署

Amélioration de la 3dsc par HSC

Malicious code analysis practice - lab03-01 Exe basic dynamic analysis

AcWing 41. 包含min函数的栈(单调栈)

DS18B20 digital thermometer (I) electrical characteristics, parasitic power supply mode and remote wiring

ArrayList automatic capacity expansion principle

MYSQL——内置函数

Set SVG color

A simple understanding of b+ tree
随机推荐
InfoQ 极客传媒 15 周年庆征文|position:fixed 虚拟按键触发后无法生效问题分析及解决方案探究
Set SVG color
PHP get (remote) large file method record
Leetcode 162 Looking for peak value (June 11, 2022)
【CF1392D】D. Omkar and Bed Wars(环形与后效性dp)
AcWing 1995. Meet and greet (simulation)
Get start date and end date for all quarters of the year
Malicious code analysis practice - lab03-01 Exe basic dynamic analysis
Assign a specified amount to a specified number of people at random
On the improvement of 3dsc by harmonic shape context feature HSC
NFT数字藏品的可验证性和稀缺性
How to upload the video on the computer to the mobile phone without network
file_ get_ Contents() JSON after reading_ Decode cannot be converted to array
MCUXpresso开发NXP RT1060(3)——移植LVGL到NXP RT1060
M-arch (fanwai 13) gd32l233 evaluation - some music
Immer source code reading
Handwritten common interview questions
信号继电器RXSF1-RK271018DC110V
redis 總結
Fiddler automatically saves the result of the specified request to a file