Tag Archives: restart

Ubuntu: How to Restart the Cron Service CodeUnit 05 JAN 2011

After making changes to your crontab file, be it the sudo or standard version of the file, you will need to restart the appropriate cron service. The command line sequence to achieve this is as follows:

sudo /etc/init.d/cron restart

The system should indicate that the cron has been successfully restarted, and you can now simply sit back and relax – job done! :)

How to Start or Stop MySQL Server on Ubuntu via the Command Line CodeUnit 07 JUL 2010

To stop a MySQL server instance on an Ubuntu linux install via the command line is as simple as entering:

sudo /etc/init.d/mysql stop

Alternatively, to start a MySQL server instance you can simply submit a start command like so:

sudo /etc/init.d/mysql start

Incidentally, if you want to check on the status of a currently running MySQL server instance, you can make use of the status switch:

sudo /etc/init.d/mysql status

Oh, and if you want to install MySQL on the ubuntu machine, simply make use of the usual apt-get suspect and enter:

sudo apt-get install mysql-server

Useful little things to remember if you are working in a terminal only environment, don’t you think? :P

Ubuntu: Restart the SMS Server Tools 3 (SMS3) Service CodeUnit 13 JAN 2010

SMS Server Tools 3 or SMS3 is a great piece of SMS Gateway open source software that allows you to send and receive short SMS messages through any number of GSM modem types or mobile phones.

It installs itself as a service on an Ubuntu Linux machine and after some setup configuration the software is good to go, verified by the fact that a service –status-all terminal call should result in showing up SMS3 somewhere in the resulting running services list.

To stop the SMS3 service, you simply need to run this line from a terminal command:

sudo service sms3 stop

To start it up again, use:

sudo service sms3 start

To restart the service completely:

sudo service sms3 restart

(You’ll notice the use of sudo to elevate your user privileges to ensure that you can interact with the possible locked service files.)

Related Link: http://smstools3.kekekasvi.com/

Ubuntu: How to Reboot or Shutdown from the Command Line CodeUnit 10 JAN 2010

If you’re using Ubuntu or perhaps another flavour of Linux, there come a time when you need to either reboot (restart) or shutdown a machine via a terminal (command line) or shell command.

Of course, it does come as no surprise that in order to carry out either of these two commands, you will need administrator privileges on the machine that you are currently using, in other words, sudo is once more you best friend.

To shut down / power off your Ubuntu PC, type in the command:

sudo halt

or

sudo shutdown -h now

Alternatively, to restart / reboot your machine, enter the command:

sudo reboot

As always, more information on both of these commands can be found via the man system:

man reboot

man shutdown