Refactor file layout
[openafs-wiki.git] / archive / InitializationScriptonSolaris.mdwn
diff --git a/archive/InitializationScriptonSolaris.mdwn b/archive/InitializationScriptonSolaris.mdwn
new file mode 100644 (file)
index 0000000..d299202
--- /dev/null
@@ -0,0 +1,34 @@
+Reboot the machine and log in again as the local superuser root.
+
+       # cd /
+
+       # shutdown -i6 -g0 -y
+
+       login: root
+       Password: root_password
+
+Run the AFS initialization script.
+
+       # /etc/init.d/afs  start
+
+[[Confirm Cache Manager Initialization|ConfirmCacheManagerInitialization]]
+
+## <a name="Automatically Start AFS on Syste"></a> Automatically Start AFS on System Boot
+
+Now that you have confirmed that the AFS initialization script works correctly, take the action necessary to have it run automatically at each reboot.
+
+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.
+
+       # cd /etc/init.d
+
+       # ln -s ../init.d/afs /etc/rc3.d/S99afs
+
+       # ln -s ../init.d/afs /etc/rc0.d/K66afs
+
+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.
+
+       # cd /usr/vice/etc
+
+       # rm afs.rc
+
+       # ln -s  /etc/init.d/afs  afs.rc