Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to create a service command in gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Wed Aug 31, 2011 12:42 pm    Post subject: how to create a service command in gentoo Reply with quote

i read in forum here that service does not exist in gentoo and nor could i find it in the computer so i did as mentioned and created a file named service in /usr/sbin then i put the following in its content:
#!/bin/sh
runscript /etc/init.d/$1 $2
and then
Code:
chmod +x service

but i get the result for
Code:
service restart xinetd

runscript should not be run directly

is there anything i could do further to make it work?
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Wed Aug 31, 2011 12:56 pm    Post subject: solved Reply with quote

ah i should have typed the following command instead:
Code:
service xinetd restart

and now it works

sorry to waste anyone's time :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum