none
[openafs-wiki.git] / AFSLore / InitializationScriptonSolaris.mdwn
1 Reboot the machine and log in again as the local superuser root.
2
3        # cd /
4
5        # shutdown -i6 -g0 -y
6
7        login: root
8        Password: root_password
9
10 Run the AFS initialization script.
11
12        # /etc/init.d/afs  start
13
14 [[Confirm Cache Manager Initialization|Main/ConfirmCacheManagerInitialization]]
15
16 ## <a name="Automatically Start AFS on Syste"></a> Automatically Start AFS on System Boot
17
18 Now that you have confirmed that the AFS initialization script works correctly, take the action necessary to have it run automatically at each reboot.
19
20 1. 1. 1. Change to the /etc/init.d directory and issue the ln -s command to create symbolic links that incorporate the AFS initialization script into the Solaris startup and shutdown sequence.
21
22        # cd /etc/init.d
23
24        # ln -s ../init.d/afs /etc/rc3.d/S99afs
25
26        # ln -s ../init.d/afs /etc/rc0.d/K66afs
27
28 1. 1. 1. (Optional) There are now copies of the AFS initialization file in both the /usr/vice/etc and /etc/init.d directories. If you want to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can always retrieve the original script from the AFS CD-ROM if necessary.
29
30        # cd /usr/vice/etc
31
32        # rm afs.rc
33
34        # ln -s  /etc/init.d/afs  afs.rc