Ubuntu: How to Stop or Start any Daemon from the Terminal

A quick way to stop or start a particular process running as a system daemon on your Ubuntu box is to make use of the start-stop-daemon command.

Usage is broken down into first providing a command, be it –start, –stop or –help, followed by a matching option which points it at what to throw that command at.

In terms of matching options available, you can search for a daemon based on –name (process name), –user (username|uid), –exec (matches executable file names) or –pidfile (pid-file match).

So for example, should you wish to stop your subversion daemon, simply enter

start-stop-daemon –stop –name svnserve

Nifty.

Related Link: http://manpages.ubuntu.com/manpages/hardy/man8/start-stop-daemon.8.html

About Craig Lotter

Craig Lotter is a 29-ish year old software and web developer by trade (currently working for Touchwork), who also just happens to never have been able to shake off that pesky inner child within. Call him a fanboy, geek, nerd or whatever you want, just so long as you enjoy what he writes. His main personal site can be found at http://www.craiglotter.co.za and his webcomic, House of C can be found at http://www.houseofc.codeunit.co.za/
This entry was posted in Software & Websites, Tutorials and tagged , , , . Bookmark the permalink.