Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8877243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:25:17+00:00 2026-06-14T19:25:17+00:00

Using UBUNTU and Virtal Box by Oracle, and Using this script to start nginx

  • 0

Using UBUNTU and Virtal Box by Oracle,
and Using this script to start nginx in Virtual Box, and placing it in Virtual box inside~/init.d

#!/bin/bash
### BEGIN INIT INFO
# Provides:          Testinit
# Required-Start:    
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

#
RETVAL=0;

start() {
CurrentTime=$(date +%d/%m/%Y"-"%I:%M:%S)
./usr/local/nginx/sbin/nginx
echo "Current Time:"$CurrentTime>>/home/server/Desktop/NginxLogs.txt
echo "!Starting nginx!" >>/home/server/Desktop/NginxLogs.txt

Like this i want to write auto script (setup.sh file) and place that script in all virtual boxes inside my system, for example 8 virtual boxes and in all Virtual boxes NGINX is installed.

Now, The thing is i am facing problem when i want change something in setup.sh i have to go to each and every virtual box, or Communicate each Virtual machine through SSH from my main machine. i am thinking to write another script (ex: Update.sh),and inside that script we give one path of file which is saved and recently edited in main machine (ex: DummySetup.sh).

as soon as i run that script all the setup.sh files which are saved in each virtual machines should update the change or replace contents with DummySetup.sh’s contents.
Hope this is possible thing. Help would be appreciated.Thanking you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:25:18+00:00Added an answer on June 14, 2026 at 7:25 pm

    As you’re doing something pretty basic, a push script is probably your best bet. However, if you’re going to be updating more and more scripts/configurations etc on the various vboxes, you might want to take a look at Puppet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running windows 7 and have installed an Ubuntu machine using virtual box.
I'm running an ubuntu guest on a mac osx host using virtual box. I'm
I am running Ubuntu 12 on Virtual box and I am using GCC to
I am using ubuntu 12.04 on 64 bit machine, I have this simple C
I have a problem with Recaptcha gem. I'm using Ubuntu on a virtual machine
I am using Ubuntu inside Windows XP using VirtualBox, and I installed R properly.
I am using Virtual Box USB passthrough features to attach a serial port to
Using VirtualBox inside of Windows7, it has Ubuntu. Just installed rails 3.1 and getting
Using Ubuntu, when I run bundle install to set up my Rails environment, it
I am currently using Ubuntu 11.10 and java SE 1.6.0_26. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.