家蛇出现寓意什么| 做活检前要注意什么| 职业暴露是什么意思| 一直发低烧是什么原因| 法脉是什么意思| 大熊猫吃什么| 副师长是什么级别| 狼吞虎咽是什么生肖| 多巴胺是什么意思| 艾迪生病是什么病| 梦见亲嘴是什么意思| 四海扬名是什么生肖| 历时是什么意思| 110斤穿什么码衣服| 内科是什么| 生抽可以用什么代替| 什么病需要做手术| 水瓶男和什么星座最配| 什么花好养| 法王是什么意思| 一度房室传导阻滞是什么意思| 蜈蚣代表什么生肖| 背靠背协议是什么意思| gxg是什么牌子| 为什么一年比一年热| 细菌性炎症用什么药| 梦到知了猴是什么意思| 憨厚是什么意思| 黄金是什么药材| 左心室强光点是什么意思| 荔枝什么时候成熟季节| 乙肝五项145阳性是什么意思| 佛跳墙是什么意思| 为什么睡不醒| 菠萝蜜不能和什么一起吃| swisse是什么意思| hpu是什么意思| 优生优育检查什么项目| moi是什么意思| 降血糖喝什么茶好| 臭虫是什么| 精湛是什么意思| 乾隆是什么生肖| 卵泡刺激素是什么意思| 什么牌子的助听器好| 带状疱疹是什么引起的| 下肢肿胀是什么原因| 嗯是什么意思| 猫的胡须是干什么用的| 啸是什么生肖| 胃痛怎么办吃什么药| 诅咒是什么意思| 天五行属什么| 触感是什么意思| vt是什么意思| 额窦炎吃什么药管用| 戴银饰变黑是什么原因| 武汉大学校长是什么级别| 检查是否怀孕挂什么科| 神龙摆尾什么意思| 什么细节能感动摩羯男| rp是什么意思| 股票xd开头是什么意思| 神经内科看什么病的| 什么颜色招财并聚财| 教师节送老师什么好| 三国之前是什么朝代| 9527是什么梗| 上升水瓶座为什么可怕| 单人旁的字有什么| 肠粘连吃什么药| 精华液是干什么的| 心脏有早搏吃什么药好| 亮油什么时候涂| 腹泻吃什么药| 宫颈细胞学检查是什么意思| 记性不好吃什么药| 干净的什么| 尿多尿频是什么原因造成的| 男人到了什么年龄就性功能下降| 尿道炎是什么引起的| 刺身是什么意思| mds医学上是什么意思| 梦到生儿子有什么预兆| 肾上腺素高会导致什么| no2是什么气体| 割包皮看什么科| 每天喝豆浆有什么好处| 什么是ct| 12.21是什么星座| 胃不好吃什么水果最好| 说什么情深似海我却不敢当| 唐僧姓什么| 副县长是什么级别| 小产后可以吃什么水果| 遍布是什么意思| ct什么意思| 拉黑一个人意味着什么| nt是什么币| 宝宝发烧吃什么食物好| 哕是什么意思| 口发苦是什么原因| 婴儿胎发什么时候剪最好| 总胆固醇偏高是什么原因| 什么猫| 什么气味能驱赶猫| 扩张是什么意思| 吃什么变碱性体质最快| 子宫内膜不典型增生是什么意思| w3是什么意思| 87年属什么的| 下压高是什么原因引起的| 媳妇是什么意思| 脂肪的克星是什么| 什么茶好喝| 头皮很痒是什么原因| 切是什么偏旁| 嘴角烂了涂什么药| 助听器什么牌子最好| 就诊是什么意思| 室缺是什么意思| 金属过敏用什么药膏| 同房出血要做什么检查| 莲蓬什么时候成熟| 拉条子是什么意思| 好无奈是什么意思| 匪夷所思什么意思| 胡思乱想是什么意思| 什么病不能吃豌豆| 壬字五行属什么| sla是什么意思| 血脂高会导致什么后果| 芦荟胶有什么用| 肝有问题会出现什么症状| 腹泻拉水是什么原因| 无纺布是什么| 鼻血流不停是什么原因| 心率变异性是什么意思| 盼头是什么意思| 肾出问题了有什么症状| 中性粒细胞低吃什么药| 4月18日什么星座| 生物是什么| 结婚下大雨是什么兆头| 体检胸片是检查什么的| 记忆力衰退吃什么药| 10月19号什么星座| 梦见打官司预示着什么| 985学校是什么意思| 心驰神往是什么意思| 惊厥是什么原因引起的| 花是植物的什么器官| 为什么宫外孕会发生| 36d什么意思| 什么是胆固醇| 塔塔粉是什么粉| 手心为什么老出汗| 什么解酒最快| 一度电是什么概念| 邪气入体是什么症状| 什么啤酒度数高| 碳水化合物是什么| 三更是什么生肖| 体内湿气太重吃什么药能快速除湿| lhrh是什么激素| 猫五行属什么| 795是什么意思| 十二生肖分别是什么| 牙疼吃什么药止疼最快| 降血糖吃什么菜| 行动派是什么意思| 清明节干什么| 减肥医院挂什么科| 流口水是什么病的前兆| 黑加京念什么| 电风扇什么牌子质量好| 脚趾麻是什么病的前兆| 血红蛋白偏高是什么意思| 电是什么| 慢性气管炎吃什么药最有效| 今年74岁属什么生肖| 哭笑不得是什么意思| 家和万事兴是什么意思| cga是什么意思| 气血不足吃什么水果| 尿毒症有什么症状| 阳气最强的树是什么树| 不免是什么意思| 孕妇为什么要左侧睡不能右侧睡| 纳尼是什么意思| 2006属什么生肖| 端午节在什么时候| 心肌供血不足吃什么药| 全身大面积湿疹暗示着什么| 查幽门螺旋杆菌挂什么科| 午马是什么意思| 尿毒症的尿是什么颜色| 惊闻是什么意思| 张衡发明了什么东西| versus什么意思| 鱼香肉丝为什么叫鱼香肉丝| 爱而不得是什么意思| 肚子咕噜咕噜响是什么原因| 颞颌关节炎吃什么药| 真菌感染什么症状| 大便为什么是黑色的是什么原因| 2013年五行属什么| 血压是什么意思| 送礼送什么水果| 干呕是什么原因| 眼底筛查是检查什么| 热天不出汗是什么原因| 什么是继发性肺结核| 感性什么意思| 跑步肚子疼是什么原因| 过江龙是什么意思| 花洒不出水什么原因| 胰腺炎吃什么| 大便次数多是什么原因| 蜻蜓为什么要点水| 脚上真菌感染用什么药| 9.22什么星座| 胆红素偏高是什么意思| 可谓是什么意思| 嘴唇上长疱疹用什么药| 首套房有什么优惠政策| 初秋的天冰冷的夜是什么歌| 为什么突然就细菌感染了| 额头青筋凸起是什么原因| 脑梗用什么药效果好| 黑脚鸡是什么品种| 不假思索的假是什么意思| 噬是什么意思| 肤色暗黄适合穿什么颜色的衣服| 父母是什么意思| 食神生财是什么意思| 山药什么季节成熟| 04年是什么年| 什么油最好| 全价猫粮是什么意思| 一月27日是什么星座| 林俊杰的粉丝叫什么| 睡觉盗汗是什么原因| 地中海贫血有什么症状| 经常干呕是什么原因| 老汉推车是什么意思| 手不什么什么| 氯雷他定片什么时候吃| 情不自禁的意思是什么| 燥是什么意思| 胆码是什么意思| 装修公司名字取什么好| 啤酒喝了有什么好处| 7月1日什么星座| 托大是什么意思| 梦到抓了好多鱼是什么意思| 属羊的什么命| 一个人是什么歌| 忌日是什么意思| 痛风什么原因引起| 1948年属鼠的是什么命| 码是什么单位| 高炮是什么| 前列腺增生伴钙化是什么意思| 百度Jump to content

2017江西会昌县考选本县籍外县(市、区)公办教师预

From Wikipedia, the free encyclopedia
Components of some Linux desktop environments that are daemons include D-Bus, NetworkManager (here called unetwork), PulseAudio (usound), and Avahi.
百度 李敖昏迷了两个月,我也早有思想准备,但真正听到他走的消息,心里还是感到震惊、难受。

In computing, a daemon is a program that runs as a background process, rather than being under the direct control of an interactive user. Customary convention is to name a daemon process with the letter d as a suffix to indicate that it's a daemon. For example, syslogd is a daemon that implements system logging facility, and sshd is a daemon that serves incoming SSH connections.

Even though the concept can apply to many computing systems, the term daemon is used almost exclusively in the context of Unix-based systems. In other contexts, different terms are used for the same concept.

Systems often start daemons at boot time that will respond to network requests, hardware activity, or other programs by performing some task. Daemons such as cron may also perform defined tasks at scheduled times.

Terminology

[edit]

In the context of computing, the word is generally pronounced either as /?di?m?n/ DEE-m?n or /?de?m?n/ DAY-m?n.[1]

The term was coined by the programmers at MIT's Project MAC. According to Fernando J. Corbató, who worked on Project MAC around 1963, his team was the first to use the term daemon, inspired by Maxwell's demon, an imaginary agent in physics and thermodynamics that helped to sort molecules, stating, "We fancifully began to use the word daemon to describe background processes that worked tirelessly to perform system chores".[2] Unix systems inherited this terminology. Maxwell's demon is consistent with Greek mythology's interpretation of a daemon as a supernatural being working in the background.

In the general sense, daemon is an older form of the word "demon", from the Greek δα?μων. In the Unix System Administration Handbook Evi Nemeth states the following about daemons:[3]

Many people equate the word "daemon" with the word "demon", implying some kind of satanic connection between UNIX and the underworld. This is an egregious misunderstanding. "Daemon" is actually a much older form of "demon"; daemons have no particular bias towards good or evil, but rather serve to help define a person's character or personality. The ancient Greeks' concept of a "personal daemon" was similar to the modern concept of a "guardian angel"—eudaemonia is the state of being helped or protected by a kindly spirit. As a rule, UNIX systems seem to be infested with both daemons and demons.

Alternative terms include service (used in Windows, from Windows NT onwards, and later also in Linux), started task (IBM z/OS),[4] and ghost job (XDS UTS). Sometimes the more general term server or server process is used, particularly for daemons that operate as part of client-server systems.[5] A daemon that connects to a computer network is a network service.

After the term was adopted for computer use, it was incorrectly[1] rationalized as a backronym for disk and execution monitor.[6][7][8]

Implementations

[edit]

Unix-like systems

[edit]

In a Unix-like system, the parent process of a daemon is often, but not always, the init process. A daemon is usually created either by the init process directly launching the daemon, by the daemon being run by an initialization script run by init, by the daemon being launched by a super-server launched by init.

The init process in Research Unix and BSD starts daemons from an initialization script. A daemon started as a command in an initialization script must either fork a child process and then immediately exit, or must be run as a background process using &, so that the shell running the initialization script can continue after starting the daemon. In the former case, the daemon process run from the shell exits, thus causing init to adopt the child process that runs as the daemon; in the latter case, when the shell running the initialization script exits, the child daemon process is adopted by init.[9]

The versions of init in System III and in System V can run arbitrary commands and can be configured to run them once or to restart them when they terminate.[10][11][12][13] The former mechanism can be used to run initialization scripts; daemons started from those scripts behave the same as in Research Unix and BSD. The latter mechanism can be used to run daemons directly from init.

A daemon can also be launched from a user's command line. However, daemons launched in that fashion typically must perform other operations, such as dissociating the process from any controlling terminal (tty). Such procedures are often implemented in various convenience routines such as daemon(3). A daemon launched by an initialization script need not do these steps, but doing so allows the daemon to be restarted by a user if it exits;[14] init itself would not restart them.[15] Operations such a daemon must do include:

  • Optionally removing unnecessary variables from environment.
  • Executing as a background task by forking and exiting (in the parent "half" of the fork). This allows daemon's parent (shell or startup process) to receive exit notification and continue its normal execution.
  • Detaching from the invoking session, usually accomplished by a single operation, setsid():
    • Dissociating from the controlling tty.
    • Creating a new session and becoming the session leader of that session.
    • Becoming a process group leader.
  • If the daemon wants to ensure that it will not acquire a new controlling tty even by accident (which happens when a session leader without a controlling tty opens a free tty), it may fork and exit again. This means that it is no longer a session leader in the new session, and cannot acquire a controlling tty.
  • Setting the root directory (/) as the current working directory so that the process does not keep any directory in use that may be on a mounted file system (allowing it to be unmounted).
  • Changing the umask to 0 to allow open(), creat(), and other operating system calls to provide their own permission masks and not to depend on the umask of the caller.
  • Redirecting file descriptors 0, 1 and 2 for the standard streams (stdin, stdout and stderr) to /dev/null or a logfile, and closing all the other file descriptors inherited from the parent process.

If the process is started by a super-server daemon, such as inetd, launchd, or systemd, the super-server daemon will perform those functions for the process,[16][17][18] except for old-style daemons not converted to run under systemd and specified as Type=forking[18] and "multi-threaded" datagram servers under inetd.[16]

MS-DOS

[edit]

In MS-DOS, daemon-like functionality was implemented as a terminate-and-stay-resident program (TSR).

Windows

[edit]

In Windows, a Windows service provides the functionality of a daemon. It runs as a process, usually does not interact with the user (i.e. via monitor, keyboard, or mouse) and may be launched by the operating system at boot time. In Windows 2000 and later versions, a Windows service is configured and controlled via various interfaces including the Control Panel, the Service Control Manager sc command, the net start and net stop commands, PowerShell, or a custom program.

However, any Windows application can perform the role of a daemon, not just a service, and some Windows daemons have the option of running as a normal process.

Mac

[edit]

In classic Mac OS, optional features and services were provided by system extensions and control panels – files loaded at startup time that patched the operating system. Later versions of classic Mac OS augmented these with faceless background applications: regular applications that ran in the background. To the user, these were still described as regular system extensions.

The more modern macOS, which is Unix-based, uses daemons but uses the term "services" to designate software that performs functions selected from the Services menu, rather than using that term for daemons, as Windows does.

See also

[edit]

References

[edit]
  1. ^ a b Eric S. Raymond. "daemon". The Jargon File. Retrieved 2025-08-05.
  2. ^ "The Origin of the word Daemon".
  3. ^ "The BSD Daemon". Freebsd.org. Retrieved 2025-08-05.
  4. ^ "Glossary of z/OS terms and abbreviations". IBM Documentation. IBM. 31 January 2006.
  5. ^ "sshd: OpenSSH server process | SSH Academy". www.ssh.com. Retrieved 2025-08-05.
  6. ^ "Daemon Definition". www.linfo.org.
  7. ^ "What is a daemon?". UCLA Knowledge Base.
  8. ^ "Daemon". Kayshav.com.
  9. ^ "(Unix) daemonization turns out to be quite old". October 3, 2024.
  10. ^ UNIX User's Manual, Release 3.0 (PDF). June 1980. INIT(8).
  11. ^ UNIX User's Manual, Release 3.0 (PDF). June 1980. INITTAB(5).
  12. ^ UNIX System Administrator's Manua Release 5.0 (PDF). June 1982. INIT(1M).
  13. ^ UNIX User's Manual System V (PDF). January 1983. INITTAB(4).
  14. ^ "Daemonization in Unix programs is probably about restarting programs". October 5, 2024.
  15. ^ "Traditionally, init on Unix was not a service manager as such". October 4, 2024.
  16. ^ a b inetd(8) – FreeBSD System Manager's Manual
  17. ^ launchd.plist(5) – Darwin and macOS File Formats Manual
  18. ^ a b "systemd.service". freedesktop.org. Retrieved August 25, 2012.
[edit]
舌头辣辣的是什么原因 膝盖疼看什么科 梦到门牙掉了是什么意思 向日葵代表什么生肖 什么汤清热解毒去火
红细胞分布宽度偏低是什么意思 白陶土样便见于什么病 s和m是什么 hpv是什么病 93年属鸡是什么命
什么发色显皮肤白 眼袋是什么 挚友是什么意思 富贵包是什么 胸一大一小什么原因
单纯性苔藓是什么病 白粉病用什么药 6.26是什么星座 什么时候大阅兵 荷花是什么季节开放的
先明后不争什么意思beikeqingting.com o型血不能和什么血型的人生孩子hcv9jop3ns4r.cn 喉咙干是什么病的前兆baiqunet.com 污蔑是什么意思bjhyzcsm.com 无穷是什么意思hcv9jop4ns2r.cn
大佬什么意思hcv7jop5ns6r.cn 市委讲师团是什么级别hcv9jop1ns3r.cn 血糖高吃什么食物最好最佳hcv8jop1ns0r.cn 塌方是什么意思hcv8jop3ns1r.cn champion是什么牌子hcv8jop8ns4r.cn
感光是什么意思hcv9jop4ns6r.cn 6.24什么星座hcv8jop5ns4r.cn 牙龈肿痛吃什么消炎药hcv8jop6ns5r.cn 蛋白糖是什么糖inbungee.com 牙冠是什么样子的图片hcv7jop6ns3r.cn
whoo是什么牌子hcv8jop3ns7r.cn 豪情万丈什么意思hcv9jop0ns5r.cn 姓陆的女孩取什么名字好hcv8jop2ns9r.cn 突然间头晕是什么原因hcv8jop6ns9r.cn 什么食物含叶酸多hcv9jop4ns8r.cn
百度