service restart

Derek Broughton news at pointerstop.ca
Fri Jul 28 12:31:23 UTC 2006


Peter Garrett wrote:

> On Thu, 27 Jul 2006 21:19:13 -0400
> Paul Kaplan <pkaplan1 at comcast.net> wrote:
> 
>> What is the command line to start, stop or restart a specific service. 
>> On another distro I used:
>> service <servicename> restart
>> but "service" doesn't seem to be a command in kubuntu.
> 
> Usually  sudo /etc/init.d/<name-of-service> start | stop | restart
> Or          sudo invoke-rc.d <name-of-service> start | stop | restart
> 
> which does the same thing.
 
Since "service" seemed like such a clean way to do it, I created a symlink
on my system for /usr/sbin/service -> invoke-rc.d

-- 
derek





More information about the ubuntu-users mailing list