service restart
Magnus Runesson
mr-ubuntu at linuxalert.org
Fri Jul 28 15:52:44 UTC 2006
On Fri, 2006-07-28 at 14:23 +0800, rpowersau at gmail.com wrote:
> On 7/28/06, Ouattara Oumar Aziz <wattazoum at gmail.com> 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.
> > TIA
> > Paul
> >
> It's been twice in a month that someone asks for that script.
> Do ubuntu
> intend to provide it?
>
> They do provide it, it just has a different name. It's
> called /etc/init.d/
>
>
> /etc/init.d/<servicename> restart
> service <servicename> restart
>
> :)
This actually not totally correct. The service command in RH and
Mandriva/Mandrake unsets environment variables to be set as they are att
boot time. There are some variables that differs att boot time and when
do run an interactive shell as root.
Regards,
/Magnus
>
--
Magnus Runesson <mr-ubuntu at linuxalert.org>
Linuxalert
More information about the ubuntu-users
mailing list