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

  • Home
  • SEARCH
  • 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 9031307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:41:57+00:00 2026-06-16T07:41:57+00:00

As per a website, I have created a simple shell script at–> /etc/init.d/jboss This

  • 0

As per a website, I have created a simple shell script at–> /etc/init.d/jboss

This shell script is to startup/shutdown JBoss AS 7.1.1 in Ubuntu 12.04 64-bit

But when I try and run the script I get an error “Syntax error: unexpected end of file”
and it mentions the last line number of the file.

I used vim to create the above file and the contents of the file are given below– what have I done wrong here?

#Required-Start:    $local_fs $remote_fs $network $syslog
#Required-Stop:     $local_fs $remote_fs $network $syslog
#Default-Start:     2 3 4 5
#Default-Stop:      0 1 6
#Short-Description: JBOSS 7.1.1 Startup/Shutdown Script
### END INIT INFORMATION

case "$1" in
    start)
           echo "Starting JBOSS AS 7.1.1"
           sudo -u root sh /usr/share/jboss-as-7.1.1/bin/standalone.sh
    ;;
    stop)
           echo "Stopping JBOSS AS 7.1.1"
           sudo -u root sh /usr/share/jboss-as-7.1.1/bin/jboss-admin.sh --connect     command=:shutdown
    ;;
    *)
           echo "Usage: /etc/init.d/jboss {start|stop}"
           exit 1
    ;;
  • 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-16T07:41:58+00:00Added an answer on June 16, 2026 at 7:41 am

    You’re missing esac to balance case.

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

Sidebar

Related Questions

I have a website that per original developer was working on local environment. I
I have a large website at www.mydomain.com. There are 1000 new documents per month
Problem Statement is somewhat like this: Given a website, we have to classify it
I have created the website in which i have to maintain the datatables &
I have created a website in PHP, now I want to add ad support
I've been at this for awhile. I am building a simple lottery website and
I have a website which serves around 20 - 50 widgets per second and
I have a website that needs to perform a certain backend function once per
I have a jQuery Mobile website I created for a friend/client of mine. It
I am currently working on a website which lists the businesses as per either

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.