linux - cron 作业在什么进程下运行?

标签 linux debian raspberry-pi cron raspbian

在带有 Raspbian 的 Raspberry Pi 2 上,我发现我可以使用 crontab -e 然后添加一行 @reboot sudo/root/.nvm/v0.10.26/bin/node/root/tweetmonkey-raspi & 到表中以在启动时启动节点进程。 我不知道如何快速终止该进程。我在 ps -e 中没有看到它。它在什么进程下运行?

最佳答案

Cron 作业由 croncrond 启动,它们会生成 sh 来运行您的命令。但是,您的命令 fork 到后台运行,然后完成执行,因此 node 进程重新成为根进程 init 的父级。

关于linux - cron 作业在什么进程下运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32282562/

相关文章:

linux - 为什么 proc/ID/maps 有多个共享库条目

c++ - 读取 .txt 文件中的多行并输出每行的答案

java - 尝试在 Linux debian crunchbang 上安装 android studio 时缺少 tools.jar

linux - 在树莓派上使用logrotate和syslog-ng(如何删除旧日志?)

python - 在启动时运行无缓冲的 python 脚本?

c++ - 如何从二进制文件中获取应用程序的版本号?

c - 如何在 Linux 工作中使用 "make and building executables"

bluetooth - Debian Sid 无法连接到蓝牙键盘

linux - debian:无法连接到网络,也许我的电脑中有 dhcp 服务器

ARM/RaspberryPi 的 LLVM 构建选项