source: chapter07/symperm.xml@ a9bc54b7

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v3_0 v3_1 v3_2 v3_3 v4_0 v4_1 v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since a9bc54b7 was 2a83bfa, checked in by Gerard Beekmans <gerard@…>, 23 years ago

Added a note that you have to use three digit symlinks, pad with zero's
if necessary (ie: use S020 instead of S20, and use K002 instead of K2)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@620 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<sect1 id="ch07-symperm">
2<title>Setting up symlinks and permissions</title>
3
4<para>
5These files get the proper permissions and the necessary symlinks are created
6by running the following commands. If you didn't create the loadkeys
7and setclock scripts, make sure not to type them in the commands below.
8</para>
9
10<para>
11A note of caution: all the symlinks (that start with an S or K) have to
12be of the form Sxxxname where xxx are three digits donating the order in
13which the script is executed (the lower the number the sooner it's
14executed). If you feel a need to use less than three digits, make sure
15you pad with extra zero's at the beginning. This means, don't use
16S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but
17K002otherdaemon.
18</para>
19
20<para>
21Revised rc and rcS scripts are on their way, but we had no time to
22properly test them for this release. They will appear in CVS shortly
23after this version of the book has been released.
24</para>
25
26<blockquote><literallayout>
27 <userinput>cd /etc/init.d &amp;&amp;</userinput>
28 <userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs
29 reboot &amp;&amp;</userinput>
30 <userinput>chmod 754 sendsignals setclock sysklogd template
31 &amp;&amp;</userinput>
32 <userinput>cd ../rc0.d &amp;&amp;</userinput>
33 <userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput>
34 <userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp;
35 </userinput>
36 <userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput>
37 <userinput>ln -s ../init.d/halt S999halt &amp;&amp;</userinput>
38 <userinput>cd ../rc6.d &amp;&amp;</userinput>
39 <userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput>
40 <userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp;
41 </userinput>
42 <userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput>
43 <userinput>ln -s ../init.d/reboot S999reboot &amp;&amp;</userinput>
44 <userinput>cd ../rcS.d &amp;&amp;</userinput>
45 <userinput>ln -s ../init.d/checkfs S200checkfs &amp;&amp;</userinput>
46 <userinput>ln -s ../init.d/mountfs S300mountfs &amp;&amp;</userinput>
47 <userinput>ln -s ../init.d/setclock S400setclock &amp;&amp;</userinput>
48 <userinput>ln -s ../init.d/loadkeys S500loadkeys &amp;&amp;</userinput>
49 <userinput>cd ../rc1.d &amp;&amp;</userinput>
50 <userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput>
51 <userinput>cd ../rc2.d &amp;&amp;</userinput>
52 <userinput>ln -s ../init.d/sysklogd S100sysklogd &amp;&amp;</userinput>
53 <userinput>cd ../rc3.d &amp;&amp;</userinput>
54 <userinput>ln -s ../init.d/sysklogd S100sysklogd &amp;&amp;</userinput>
55 <userinput>cd ../rc4.d &amp;&amp;</userinput>
56 <userinput>ln -s ../init.d/sysklogd S100sysklogd &amp;&amp;</userinput>
57 <userinput>cd ../rc5.d &amp;&amp;</userinput>
58 <userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
59</literallayout></blockquote>
60
61</sect1>
62
Note: See TracBrowser for help on using the repository browser.