nis
- 2. 再起動時の自動実行
-
http://www.linux.or.jp/JF/JFdocs/NIS-HOWTO/reboot.html
/etc/sysconfig/network
NISDOMAIN=hoge
cd /etc/rc.d/
3 8:21 ln -s ../init.d/amd rc3.d/S28amd
4 8:21 ln -s ../init.d/amd rc4.d/S28amd
5 8:21 ln -s ../init.d/amd rc5.d/S28amd
6 8:21 ln -s ../init.d/ypbind rc5.d/S19ypbind
7 8:21 ln -s ../init.d/ypbind rc3.d/S19ypbind
NISDOMAIN=hoge.hoge
sakoto@redhat 8:21:53/030928(/etc/rc.d)# env LANG=C find . -mtime -1 -type l -l
13 Sep 28 07:47 ./rc0.d/K28amd -> ../init.d/amd
13 Sep 28 07:47 ./rc1.d/K28amd -> ../init.d/amd
13 Sep 28 07:47 ./rc2.d/K28amd -> ../init.d/amd
13 Sep 28 07:47 ./rc3.d/K28amd -> ../init.d/amd
13 Sep 28 08:21 ./rc3.d/S28amd -> ../init.d/amd
16 Sep 28 08:21 ./rc3.d/S19ypbind -> ../init.d/ypbind
13 Sep 28 07:47 ./rc4.d/K28amd -> ../init.d/amd
13 Sep 28 08:21 ./rc4.d/S28amd -> ../init.d/amd
13 Sep 28 07:47 ./rc5.d/K28amd -> ../init.d/amd
13 Sep 28 08:21 ./rc5.d/S28amd -> ../init.d/amd
16 Sep 28 08:21 ./rc5.d/S19ypbind -> ../init.d/ypbind
13 Sep 28 07:47 ./rc6.d/K28amd -> ../init.d/amd
makoto@redhat 8:21:59/030928(/etc/rc.d)#
[makoto@redhat makoto]$ ps ax|grep amd
2740 ? S 0:00 /usr/sbin/amd -F /etc/amd.conf
3091 pts/0 S 0:00 grep amd
[makoto@redhat makoto]$ ps ax|grep ypbind
2639 ? S 0:00 ypbind
3093 pts/0 S 0:00 grep ypbind
3 8:21 ln -s ../init.d/amd rc3.d/S18portmap
4 8:21 ln -s ../init.d/amd rc4.d/S18portmap
|