I have the following start script.

# MyApp
# description: bla bla

case $1 in
        /bin/bash /javaprog/serport-start.sh
        /bin/bash /javaprog/serport-stop.sh
        /bin/bash /javaprog/serport-stop.sh
        /bin/bash /javaprog/serport-start.sh
exit 0

The problem is it doesn't start automatically (Webmin tells me that it should be, in the column "at boot?" it's marked as "yes").

If I start the script in Webmin by clicking on "start now" it works and the script starts.

Does someone know what the problem can be?

  • What's the underlying distro of Linux you're running Webmin on? – slm Dec 26 '13 at 22:22
  • I am running it on a raspberry pi the disto is Raspbian (debian) – Robert Stevens Dec 26 '13 at 22:28

I would suggest going through the Webmin Wiki, there is a topic titled: Bootup and Shutdown. You typically have to include special comments at the top so that your script gets picked up as being a well-formed startup script.

   ss of script

Specifically notice the init comment lines:

       ss of init

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.