systemctl如何根据pid寻找具体哪个服务_如何通过pid找到服务-程序员宅基地

技术标签: Linux  w3c  

家里折腾我家云omv系统, 

一直有个进程 2105 aria2c --conf-path=/opt/etc/aria2.conf

在写emmc文件...一会就写满了...

 

需要利用systemctl disable 该项服务, 以解决该问题...

root@omv:/opt# systemctl --help | grep -i pid
  status [PATTERN...|PID...]      Show runtime status of one or more units
  help PATTERN...|PID...          Show manual for one or more units
root@omv:/opt# systemctl status 2105
● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: active (running) since Tue 2020-03-24 22:56:36 CST; 8min ago
  Process: 1450 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
    Tasks: 48 (limit: 4915)
   Memory: 110.3M
      CPU: 13.582s
   CGroup: /system.slice/rc-local.service
           ├─1765 redis-server 127.0.0.1:6379
           ├─1788 snmpd -c /opt/etc/snmp/snmpd.conf
           ├─2105 aria2c --conf-path=/opt/etc/aria2.conf
           ├─2110 shellinaboxd -t -u root --css /opt/lib/shellinabox/white-on-black.css -b
           ├─2111 shellinaboxd -t -u root --css /opt/lib/shellinabox/white-on-black.css -b
           ├─2118 transmission-daemon -g /opt/etc/transmission
           ├─2177 nginx: master process nginx
           ├─2178 nginx: worker process
           ├─2179 nginx: worker process
           ├─2180 nginx: worker process
           ├─2182 nginx: worker process
           ├─2184 php-fpm: master process (/opt/etc/php7-fpm.conf)
           ├─2185 php-fpm: pool www
           ├─2186 php-fpm: pool www
           ├─2217 /opt/bin/filebrowser -d /opt/etc/filebrowser/filebrowser.db
           ├─2221 /opt/bin/baidupan
           └─2223 /opt/easyexplorer/easy-explorer-arm

Mar 24 23:03:11 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:03:21 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:03:31 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:03:41 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:03:51 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:04:01 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:04:11 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:04:21 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:04:31 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Mar 24 23:04:41 omv transmission-daemon[2118]: watchdir Failed to open directory "/srv/dev-disk-by-label-data/media/watchdir" (2): No such file or directory (watchdir.c:354)
Warning: rc-local.service changed on disk. Run 'systemctl daemon-reload' to reload units.

ok, 可以看到是rc-local.service...

root@omv:/opt/bin# systemctl stop rc-local.service
Warning: rc-local.service changed on disk. Run 'systemctl daemon-reload' to reload units.
root@omv:/opt/bin# systemctl disable rc-local.service

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/nwpu053883/article/details/105084166

智能推荐

1147: 查找子数组 C语言_题目描述 小c学习数组时非常喜欢取子数组这一操作,即选择-一个起始点一个终止点,-程序员宅基地

文章浏览阅读729次。1147: 查找子数组时间限制: 1 Sec 内存限制: 128 MB提交: 5264 解决: 3275[状态] [讨论版] [提交] [命题人:admin]题目描述给定两个整型数组,数组a有n个元素, 数组b有m个元素,1<=m<=n<100,请检验数组b是否是数组a的子数组。若从数组a的某个元素a[i]开始,有b[0]=a[i],b[1]=a[i+1],…,b[m]=a[i+m],则称数组b是数组a的子数组。输入输入第一行为两个整数n和m;第二行为数组a的n个整数;第_题目描述 小c学习数组时非常喜欢取子数组这一操作,即选择-一个起始点一个终止点,

公司企业展示门户店铺展示宣传微信小程序前端源码_广告公司小程序源码-程序员宅基地

文章浏览阅读805次,点赞2次,收藏11次。微信小程序也是这么多年来中国IT行业里一个真正能够影响到普通程序员的创新成果,已经有超过150万的开发者加入到了微信小程序的开发,与我们一起共同发力推动微信小程序的发展,微信小程序应用数量超过了一百万,覆盖200多个细分的行业,日活用户达到两个亿,微信小程序还在许多城市实现了支持地铁、公交服务。微信小程序,小程序的一种,英文名Wechat Mini Program,是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或搜一下即可打开应用。对话框发送:wx门户。_广告公司小程序源码

angular ng-template 灵活运用_angular双重嵌套表单动态项-程序员宅基地

文章浏览阅读6k次。用处可以随意调整组件显示的位置,个人觉得在嵌套组件中最方便举例app.component.tsimport { Component, ViewChild, TemplateRef,ViewContainerRef } from '@angular/core';@Component({ selector: 'app-root', styleUrls: ['./app.compone..._angular双重嵌套表单动态项

Xilinx Vitis Error Launching Program: Memory write error MMU section translation fault_error while launching program: can't read "map": n-程序员宅基地

文章浏览阅读2.9k次,点赞2次,收藏3次。在 Run As -> Launch Hardware (Single Application Debug (GDB)) 时报错:Error while launching program:Memory write error at 0x100000. MMU section translation fault原因是 JP4 接口误接为 SD,改接为 JTAG 后即可顺利 Program Device。..._error while launching program: can't read "map": no such variable can't read

Scala第十八章节(Iterable集合、Seq集合、Set集合、Map集合以及统计字符个数案例)-程序员宅基地

文章浏览阅读1.4k次,点赞16次,收藏22次。1. 掌握Iterable集合相关内容.2. 掌握Seq集合相关内容.3. 掌握Set集合相关内容.4. 掌握Map集合相关内容.5. 掌握统计字符个数案例.

UFT(QTP)windows 对象_uft window(" ").type-程序员宅基地

文章浏览阅读315次,点赞2次,收藏6次。Window对象,标准Windows窗口. WinEdit对象,标准Windows 控件 edit box(文本框). WinEditor对象, 标准Windows 控件multi-line editor(多文本框).1、打开一个记事本,最小化窗口--最大化窗口--调整窗口大小为:300,300--还原窗口--移动窗口到60,60这个位置--输入小写的qtp--输入回车键--输入大写的QTP--关掉记事本窗口。Desktop桌面对象,根对象,该对象是其它对象的上层对象。(可以用For to。_uft window(" ").type

随便推点

使用Matlab coder 生成函数‘referencePathFrenet’ 对应C/C++代码含有超大数组_matlab coder 数组-程序员宅基地

文章浏览阅读122次。在'clothoidG2fitCourse.m'里面找到调用'dclothoid'处,手动输入迭代次数,这里写了6次。注意要同步修改上面up值,计算方法我写了注释。数组大幅缩小,满足嵌入式集成要求。_matlab coder 数组

js常用方法_格式化金额_比较时间对象_秒转时分秒_js 时分秒格式化00:00:00-程序员宅基地

文章浏览阅读351次。/** * 秒转时分秒 * @param 秒 * @returns result[],时、分、秒 */function formatSeconds(value) { var theTime = parseInt(value);// 秒 var theTime1 = 0;// 分 var theTime2 = 0;// 小时 if (theTime_js 时分秒格式化00:00:00

shiro权限控制之粗细粒度的区别(转)_权限粗颗粒和细颗粒的区别-程序员宅基地

文章浏览阅读3.9k次,点赞2次,收藏4次。1.1 什么是粗粒度和细粒度权限粗粒度权限管理,对资源类型的权限管理。资源类型比如:菜单、url连接、用户添加页面、用户信息、类方法、页面中按钮。。粗粒度权限管理比如:超级管理员可以访问户添加页面、用户信息等全部页面。部门管理员可以访问用户信息页面包括 页面中所有按钮。 细粒度权限管理,对资源实例的权限管理。资源实例就资源类型的具体化,比如:用户id为001的修改连接,1110班的用户_权限粗颗粒和细颗粒的区别

安卓1.0明显是基于linux内核开发的,安卓1.0是不是linux套壳?-程序员宅基地

文章浏览阅读556次,点赞14次,收藏7次。Google 从来都是大大方方的承认自己的技术来源的. Android 甚至都不是 Google 的原创, 而是收购了 Andy Rubin 创立的 Android Inc. 而来. 而为了 Linux 内核的一些原因 (主要是相关驱动是否需要遵循 GPL 的问题), Google 和 Linux 社区还打了很久的口水战.在开始前我有一些资料,是我根据自己从业十年经验,熬夜搞了几个通宵,精心整理了一份「安卓开发资料从专业入门到高级教程+工具包」,点个关注,全部无偿共享给大家!

16.2 ARP 主机探测技术_arp探测-程序员宅基地

文章浏览阅读4.2k次。ARP (Address Resolution Protocol,地址解析协议),是一种用于将 `IP` 地址转换为物理地址(`MAC地址`)的协议。它在 `TCP/IP` 协议栈中处于链路层,为了在局域网中能够正确传输数据包而设计,由协议数据单元和对应的操作命令组成。`ARP` 既可以由操作系统处理,也可以由网卡处理。该协议的作用是通过一个局域网上的互联网协议(IP)地址来查询对应的物理硬件地址,如数据包发送到路由器时,ARP 协议将使用嵌入在数据包中的目的 IP 地址查找对应的物理地址,路由器根据获_arp探测

苹果内购买笔记-程序员宅基地

文章浏览阅读90次。苹果内购买包括4种类型:1.消耗性; 2.非消耗性;3.自动续订订阅;4.非续订订阅.首先需要有一个itunesconnect上协议、税务和银行业务模块中有银行卡绑定同时遵守了各种苹果协议的开发帐号;(具体如何申请填写网上百度一堆)然后代码前记得添加协议<SKPaymentTransactionObserver,SKProductsRequestDelegate,SKReque..._restoretransaction 恢复的是什么

推荐文章

热门文章

相关标签