Re: Startup script woes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Robert Bielik wrote:
> Les Mikesell skrev:
>> The straightforward way would be to give each of your services a different name 
>> (service-a, service-b, etc) so you would have different init file instances, 
>> different pid file names, and can specify the appropriate arguements to each 
>> program.
> 
> Yeah, thought of doing multiple:
> ln -s /usr/bin/java service_a
> ln -s /usr/bin/java service_b
> etc.
> 
> If the jsvc track fails, I'll fallback on this.

Don't they really need different config files for things like which port 
to bind to anyway?  Using different init scripts instead of links would 
give you a place to specify that - or you could use the RedHat-style 
scheme of extrapolating specific variable settings into files that match 
the service name under /etc/sysconfig to keep local changes out of the 
distributed init and config files.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux