Answer the question
In order to leave comments, you need to log in
Need constructive criticism bash script
Good afternoon,
We have been working with Linux not so long ago, so I ask you to look at the script for starting / stopping the service.
The script itself is here - pastebin.com/NgdPgQLx
Thank you very much!
Answer the question
In order to leave comments, you need to log in
I'd
SCRIPTNAME=/etc/init.d/$NAME
SCRIPTNAME=`readlink -m $0`
Try upstart if your system has it (i.e. if you have Ubuntu). Everything is much simpler there, for example, you do not need to write all this triviality that occurs in every first script from SystemV.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question