开发者

Where is the source code for Linux built in Services? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_JAVA百科

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

I am looking at linux startup services, like Cron which runs at level 5 located in init.d, in the startup script I can only see the script file and location of binary file which is executed on startup.

Where can I see the actual source code of these services?


On Debian (or Debian based) systems, you can also apt-get source <packagename>, assuming you have the appropriate deb-src URLs in /etc/apt/sources.list.

This works for underprivileged users, it will fetch the source and uncompress it in the current working directory.

To reproduce the builds, its a good idea to have debhelper installed, or let apt satisfy the dependencies automagically by using apt-get build-dep <packagename>

Its a lot more convenient than googling / searching for the source archive that will reproduce the version of the program you want to study or modify.


It depends on your distribution, but Debian has source packages for each package, e.g. http://packages.debian.org/source/lenny/cron

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜