You are not logged in.

#1 2003-06-29 17:10:41

miki
Member
Registered: 2003-04-02
Posts: 25

service command

It would be nice to have a service command/function to be able to start daemons with
service samba start

im little lazy to write entire command line

Offline

#2 2003-06-29 17:32:10

Gyroplast
Member
From: Germany
Registered: 2002-09-03
Posts: 166
Website

Re: service command

Ehrm.. no offense, but how the heck is that so much different from typing /etc/rc.d/samba start with TAB completion? Heck, if you're so keen on this, write a little shell script calling /etc/rc.d/$1 with parameter $2, call it "service", and there you have it. Barely a two-liner. smile


"That's the problem with good advice. Nobody wants to hear it."
-- Dogbert

Offline

#3 2003-06-29 18:38:10

miki
Member
Registered: 2003-04-02
Posts: 25

Re: service command

the point is that i have a lot of RH machines and im used to type
service ......

just that, a habbit

Offline

#4 2003-06-29 18:59:38

dariball
Member
From: Germany - Frankfurt
Registered: 2002-10-20
Posts: 118
Website

Re: service command

miki, u have luck that i'm just _nearly_ as lazy as u are :

write these 2 lines into a file called "service", then copy it to /usr/bin/ and don't forget to chmod +x /usr/bin/service....

#!/bin/sh

exec /etc/rc.d/$1 $2

this will be something like a redhat compatibility script *gg*

greetz


nothing,
maybe I have a perfect signature _someday_

Offline

#5 2003-06-29 19:42:12

miki
Member
Registered: 2003-04-02
Posts: 25

Re: service command

it is just what i needed
should be in next distro!

Offline

#6 2003-06-29 21:08:33

dariball
Member
From: Germany - Frankfurt
Registered: 2002-10-20
Posts: 118
Website

Re: service command

i don't think it will be included because it's a think everyone can include by his/herself, and i don't think that arch will have much of those i'm-too-lazy-to-type-some-more-lines scripts smile

but if u have some wishes, just post and someone will write u such a script...


nothing,
maybe I have a perfect signature _someday_

Offline

Board footer

Powered by FluxBB