I am building a startup script for a service in Solaris
I have written a script and placed in in the appropriate folder (i think)
i have renamed it S70startup and placed it in the rc2.d rc3.d folder (i think this is correct I dont have the machine here with me now)
this is the format of the script
Code:
#!/sbin/sh
# Script
case "$1" in
start)
;;
restart)
;;
stop)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
What i need to know is:
1 if this format is correct
2 where to place the files
3 anything else? I have heard about using inittab file but i though that was primarily used for System Services?
Thanks in advance
Chris