Hi all,
the following is my problem:
I want to create an rpm installing a software, which includes a scripot which starts the software as a service.
So I create the following files:
/etc/init.d/mysoftware_service
/etc/rc5.d/S32mysoftware_service
/etc/rc1.d/K32mysoftware_service
This works perfectly, but now I have the problem, that maybe an entry with the number S32 or K32 in the rc.X directory already exists. In this case I want to create the links with a different number, e.g.:
/etc/rc5.d/S99mysoftware_service
/etc/rc6.d/K99mysoftware_service
But how can I check in the rpm script if the S32xxx already exists and react accordingly to that.
My Spec file looks like the following:
Ben Sky
Code:
Summary: Install myprogram
%define version 1.0
Copyright: bensky
Name: my_installer_rpm
Provides: my_installer_rpm
Release: 1
Version: %{version}
%description
something
%files
%defattr(-,root,root)
/etc/rc.d/init.d/mysoftware_service
/etc/rc.d/rc5.d/S32mysoftware_service
/etc/rc.d/rc6.d/K32mysoftware_service
Thanks for any help or input