Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Fri 06-27-2025 10:23AM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Autostarting scripts
PostPosted: Fri 05-05-2006 11:17PM 
Offline
Brigadier General

Joined: Tue 01-22-2002 12:35PM
Posts: 1057
Location: Shawnee Mission, KS

Source: Off Campus
I have Apache Tomcat installed on my Ubuntu box. It has a script called "startup.sh" that I'd like to have run at boot (but after the Apache webserver starts). How do I go about doing that? Also, I'd like to have it run as the same user as the webserver (www-data), rather than as my user.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Sat 05-06-2006 12:22AM 
Offline
more like GAY SWIFT
User avatar

Joined: Mon 03-29-2004 10:45PM
Posts: 229

Source: Off Campus
I could tell you how to do it in Debian. This is probably a RTFM situation. In Debian you put your script in the /etc/init.d/ folder, and run the update-rc.d command. update-rc.d is Debian specific as far as I know, but there may be something similar in Ubantu. Good luck!

_________________
I have a cheese-shredder, which is its positive name. They don't call it by its negative name, cause no one would buy it: sponge-ruiner. Because I wanted to clean it, and now I have little bits of sponge that would melt easily over tortilla chips.


Top
 Profile  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group