Is init file for an application part of rpm

Rohit Bajaj
Rohit Bajaj used Ask the Experts™
on
HI,
I saw that an rpm spec contains predeployment and post scripts. But couldnt locate the initscript corresponding to it.
Is not init file for an application part of rpm package ? where is it located ?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
It is just file in /etc/init.d
In general you dont need RPM pre/post scripts.

Author

Commented:
but when we install an rpm it also installs an init script for it automatically ?
Top Expert 2015
Commented:
You need to execute chkconfig --add after putting file in /etc/init.d
Fedora project maintains RPM and all the related documentation, it is a long but fruitful read.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial