[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Easier way to restart networking in Ubuntu?

Posted on 2008-09-29
2
Medium Priority
?
376 Views
Last Modified: 2013-11-15
For some unknown reason my Ubuntu file server seems to loose it's connection to the network. I was wondering if there is a simple way in Ubunutu to create a "application" that will just perform a command line action. The command I want to invoke is:

sudo /etc/init.d/networking restart

That way I can tell someone over the phone to just run the "Restart Network" application on the desktop instead og getting them to find the terminal, type sudo etc... I don't mind them typing in the admin password, but if they didn't have to that would be super!

Thanks.
0
Comment
Question by:cawthron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
pointerstop earned 2000 total points
ID: 22602177
In the first place, if you really want to run "networking restart", then just right-click on the desktop, select "Create New ... Link to application", and enter the command you "sudo /etc/init.d/networking restart" as the application.

Don't forget to give the user who's going to execute that "sudo" access, via visudo

However, you'd be better off, as a temporary workaround!, writing a script that checks if the interface is up, and if not, "ups" it, then run it from cron every minute.

Even better would be to figure out what takes down the interface.
0
 

Author Closing Comment

by:cawthron
ID: 31501411
Thanks pointershop.

I knew there was a a way to create apps from commands somewhere!

Will work on fixing problem this weekend, for now this fix will do - I think it has something to do with a faulty Cnet PCI network card - as I have exact same setup on another box and there is no problems. Hopefully when I swap out the card all will be fixed, if not..... I'll be back!
0

Featured Post

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question