First of all sorry for my bad english
Ok, i wrote a init.d script and i don't know its true or false (i am new at this things)
#!/bin/sh
. /etc/init.d/someserver
start () {
echo -n $"Starting someserver.jar: "
java -jar /home/someserver/someserver.jar &
echo $! > /home/someserver/someserver.pid
}
stop () {
echo -n $"Stopping someserver.jar: "
PID=$(/home/someserver/someserver.pid)
kill -9 $PID
}
restart() {
stop
start
}
case $1 in
start)
start
;;
stop)
stop
;;
*)
echo $"Usage: someserver {start|stop}"
exit 1
esac
after that i use this commands;
$ sudo chmod 755 /etc/init.d/someserver
$ sudo update-rc.d someserver defaults
i am getting this info;
insserv: warning: script 'someserver' missing LSB tags and overrides
/etc/init.d/someserver: 6: .: 3: Too many open files
I search the errors and info's but i can't understand so what does it mean and what should i do?
Note:os debian, and i writing this for mmonit