Red Hat Bugzilla – Bug 232684
need initscripts for Solaris
Last modified: 2015-12-07 11:51:16 EST
We need the init.d and rcX.d initscripts for Solaris.
Created attachment 150248 [details]
Resolves: bug 232684
Description: need initscripts for Solaris
Reviewed by: nhosoi (Thanks!)
Fix Description: I was able to mostly use the linux initscript. The biggest
issue was that Solaris does not support bash for init scripts, so I had to
convert all of the bash-isms to just use plain old Bourne shell syntax. I
removed the grep for the pids and just used kill -0, so I don't need the pids
list or pidof anymore. Solaris mounts /var/run in tmpfs (i.e. memory disk)
which is removed upon reboot, so we have to create and set permission on
/var/run if it doesn't exist. Solaris also doesn't provide a library of useful
shell functions, so I had to define success() and failure() if they don't exist.
Platforms tested: Solaris 9
Flag day: no
Doc: Yes - we will need to document the init scripts.
Checking in initscript.in;
/cvs/dirsec/ldapserver/wrappers/initscript.in,v <-- initscript.in
new revision: 1.4; previous revision: 1.3