i have developed a GPS proj. in solaris now i need to invoke this application at the time of operating system start up only. In which location i have to keep this application....

Dani AI

Generated

Brief, practical path for (and a note to ): on Solaris the clean, supported way to make a program start at boot is to register it with the Service Management Facility (SMF). Put the application and its libraries under a standard third-party tree (for example, /opt/yourapp or /usr/local/yourapp), create a small start/stop wrapper that sets any needed environment and runs the binary as a dedicated unprivileged user, and place that wrapper where SMF expects method scripts (for custom services this is typically the system method directory). An SMF XML manifest then declares the service, its start/stop methods, and dependencies so SMF can manage ordering and automatic restarts.

Typical workflow to implement and validate:

svccfg import /path/to/your-manifest.xml
svcadm enable <service-fmri>
svcs -xv <service-fmri>

Troubleshooting notes: run the wrapper manually as the service user first to catch missing libs or bad paths. If the service needs network or remote filesystems, encode those dependencies in the manifest or make the start method wait until resources are ready. Check SMF diagnostics and logs under /var/svc/log and use svcs -xv for actionable error messages. On very old Solaris releases without SMF, the traditional SysV-style init scripts remain an option, but SMF is preferred for reliability and easier debugging.

Please understand that the applications can run only after the OS is up and running. you can add your application details to init.d script in /etc directory to start your application automatically

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.