Last Update: 19 June 2008
Product: StarLicense for UNIX
Version: 1.x
Article ID: SQV00SL003
This technical document describes how to add the StarLicense for UNIX daemon to the boot process so that it starts automatically when the operating system starts.
The runtime control (rc) script for StarLicense, /etc/rc.sqlicd, is automatically created when StarLicense is installed. Use the mkitab command to add an entry to the /etc/inittab file that instructs the operating system to start the StarLicense daemon when the system boots up.
Create a symbolic link in /usr/local/etc/rc.d directory that points to the StarLicense daemon startup script.
For FreeBSD v6.1 and later, you can also use this method:$ ln -s /usr/share/starlicense/sqlicd.sh /usr/local/etc/rc.d
$ ln -s /usr/share/starlicense/100.sqlicd.sh /usr/local/etc/rc.d
sqlicd_enable="YES"
Create symbolic links in the /sbin/rc2.d and /sbin/rc1.d directories pointing to the StarLicense daemon startup and shutdown script.
$ ln -s /opt/starlicense/sqlicd.sh /sbin/init.d/sqlicd
Create two additional symbolic links using the following commands:
$ ln -s /sbin/init.d/sqlicd /sbin/rc2.d/S99sqlicd
$ ln -s /sbin/init.d/sqlicd /sbin/rc1.d/K99sqlicdThe placement of the S99sqlicd symbolic link in the rc2.d directory instructs the operating system to start the StarLicense daemon, using the linked script, when entering level 2 of the startup process, at a priority of 99.
The placement of the K99sqlicd symbolic link in the rc1.d directory instructs the operating system to kill the StarLicense daemon, using the linked script, when entering level 1 of the shutdown process, at a priority level of 99.
Use the chkconfig command to add the StarLicense daemon to the boot process.
$ /sbin/chkconfig --add sqlicd
For Debian Linux, use the update-rc.d to create symbolic links in the /etc/rc2.d, etc directories:
$ update-rc.d sqlicd start 99 2 3 4 5 . stop 99 0 1 6 .
Create symbolic links in the /etc/rc2.d and /etc/rc1.d directories pointing to the StarLicense daemon startup and shutdown script.
$ ln -s /opt/starlicense/sqlicd.sh /etc/init.d/sqlicd
Create two additional symbolic links using the following commands:
$ ln -s /etc/init.d/sqlicd /etc/rc2.d/S99sqlicd
$ ln -s /etc/init.d/sqlicd /etc/rc1.d/K99sqlicdThe placement of the S99sqlicd symbolic link in the rc2.d directory instructs the operating system to start the StarLicense daemon, using the linked script, when entering level 2 of the startup process, at a priority of 99.
The placement of the K99sqlicd symbolic link in the rc1.d directory instructs the operating system to kill the StarLicense daemon, using the linked script, when entering level 1 of the shutdown process, at a priority level of 99.
The information in technical documents comes without any warranty. The author(s) or distributor(s) will not accept responsibility for any damage incurred directly or indirectly through use of the information contained in these documents. The information in technical documents may be gathered from various sources, including IBM, Microsoft, and other organizations.