View previous topic :: View next topic |
Author |
Message |
Majed17 Guru
Joined: 31 Aug 2011 Posts: 328 Location: Minsk, Belarus
|
Posted: Wed Aug 31, 2011 12:42 pm Post subject: how to create a service command in gentoo |
|
|
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
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 |
|
|
Majed17 Guru
Joined: 31 Aug 2011 Posts: 328 Location: Minsk, Belarus
|
Posted: Wed Aug 31, 2011 12:56 pm Post subject: solved |
|
|
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 |
|
|
|