How do I make Monkey Web Server Automatically run?


Forum: Apps
Topic: How do I make Monkey Web Server Automatically run?
started by: ApocalypseFalcon

Posted by ApocalypseFalcon on Feb. 24 2006,03:15
How can I make Monkey Web server automatically run on startup, I have dsl v 1.2 installed on my hard drive (for some reason i could not get dsl v 2.2 to install) and it is working fine. I was just wondering how to make this run on bootup, so I can turn my server on automatically (from the BIOS) in the morning without having to push the button in the control panel to turn monkey web server on.
Posted by mikshaw on Feb. 24 2006,14:32
One way is to add "/opt/monkey/bin/banana start" to /opt/bootlocal.sh, and backup that file if necessary.
If monkey is not a typical daemon (running in the background by default), you may need to add "&" to the end of the command.

Posted by dhruv on Mar. 09 2006,22:07
Quote (mikshaw @ Feb. 24 2006,09:32)
One way is to add "/opt/monkey/bin/banana start" to /opt/bootlocal.sh, and backup that file if necessary.
If monkey is not a typical daemon (running in the background by default), you may need to add "&" to the end of the command.

i am a noob and can not figure out how to edit the bootlocal file. it is marked readonly and i can't change it.

Please email me an answer if you can.

dhruvbhavsar at bellsouth.net

Posted by mikshaw on Mar. 09 2006,23:36
sorry, but i don't do support via email or private message...only here and at #damnsmalllinux

/opt/bootlocal.sh should be writeable by user dsl, I believe.  Maybe you are logged in as a different user?  In any case, you can edit the file as root.  Quick way to do it is by typing this in a terminal:
Code Sample
sudo echo "/opt/monkey/bin/banana start" >> /opt/bootlocal.sh

Note the ">>".  That's 2, not 1.  If you use just ">" it will overwrite the file instead of appending to it.

Another method for starting monkey automatically is to add the word "monkey" to your boot options.  The precise method of doing this depends on which bootloader you are using.

Posted by ApocalypseFalcon on Mar. 13 2006,21:46
also, you might have to use emel-fm as the super user by using the menu when you right-click in order to edit the file. I have had the same problem
Posted by newOldUser on Mar. 13 2006,23:31
Try the "monkey" parm when you start DSL.  

If that doesn't work and you need to edit the /opt/bootlocal.sh file.  RIGHT-CLICK on the emelfm icon and select super-user mode.

After you edit /opt/bootlocal.sh you'll have to make it executable again. While in emelfm right-click on the file bootlocal.sh.....select properties....permissions and make sure all the buttons under EXEC are pressed in.

mikshaw... I really learn a lot from reading your posts... I wouldn't have thought of doing that append. Keep posting and thanks.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.