I wrote a very quick & dirty script 

 cat /sbin/service
#!/bin/sh
/etc/init.d/$1 $2

now I can service samba stop|start etc

the problem is remebering service names (is it samba? or smb? or smbd? -
redhat calls it smb, gentoo calls it samba)

On Tue, 18 Feb 2003 08:48:17 -0500
Phil Barnett <[EMAIL PROTECTED]> wrote:

> On Tuesday 18 February 2003 8:39 am, brett holcomb wrote:
> 
> > What are you trying to do??  Any distro will tell you a
> > service is started if it's already running.   You do a
> > /etc/init.d/service restart if you want to restart it.
> >  This is equivalent of a stop then a start.  Gentoo's init
> > service is the same as all the others - the directories
> > may be different but they all do /etc/somedir/servicename
> > start/stop/restart/... .
> 
> What I miss in Gentoo is the simple format for services like found in Redhat 
> and many others, ie:
> 
> service servicename stop/start/restart
> 
> It eliminates needing to know where the service directory is or including it 
> every time.
> 
> service httpd stop
> 
> is a lot easier than any other incarnation and make any system easier to 
> admin.
> 
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 



--
[EMAIL PROTECTED] mailing list

Reply via email to