I have one service in /etc/init.d.it will be like this
#!/bin/sh /etc/rc.common
START=90
USE_PROCD=1
start_service() {
cd /dir/
procd_open_instance
procd_set_param command usr/bin/Myservice
procd_set_param respawn ${threshold:-20} ${timeout:-5} ${retry:-3}
procd_close_instance
}
But while i am running this service it doesn't changing the directory to 'dir' thats why service doesn't started.For my service it is necessary to change the directory . So Please help with what i was missed .How to execute cd /dir/ command successfully.