remove spam
[openafs-wiki.git] / InitializationScriptonLinux.mdwn
1 Reboot the machine and log in again as the local superuser root.
2
3        # cd /
4
5        # shutdown -r now
6
7        login: root
8        Password: root_password
9
10 Run the AFS initialization script.
11
12        # /etc/rc.d/init.d/afs  start
13
14 [[Confirm Cache Manager Initialization|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 Issue the chkconfig command to activate the afs configuration variable. Based on the instruction in the AFS initialization file that begins with the string #chkconfig, the command automatically creates the symbolic links that incorporate the script into the Linux startup and shutdown sequence.
21
22        # /sbin/chkconfig  --add afs
23
24 (Optional) There are now copies of the AFS initialization file in both the /usr/vice/etc and /etc/rc.d/init.d directories, and copies of the afsd options file in both the /usr/vice/etc and /etc/sysconfig directories. If you want to avoid potential confusion by guaranteeing that the two copies of each file are always the same, create a link between them. You can always retrieve the original script or options file from the AFS CD-ROM if necessary.
25
26        # cd /usr/vice/etc
27
28        # rm afs.rc afs.conf
29
30        # ln -s  /etc/rc.d/init.d/afs  afs.rc
31
32        # ln -s  /etc/sysconfig/afs  afs.conf