Re: What's the difference between /etc/init.d and /sbin/service

2009-04-20 Thread Bill Crawford
On Saturday 18 April 2009 19:21:30 Remi Collet wrote: ... > You use want to use apache with php and Oracle. > > In your root environment you have all the stuff needed > (mainly LD_LIBRARY_PATH, yes I know it's stupid, but it's Oracle) > > If you use /etc/init.d/httpd script apache will start. > > O

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Sam Varshavchik
Nathan Huang writes: Hi guys I face a problem, What 's the difference between these two commands? [miran...@charon ~]$ su -c '/etc/init.d/NetworkManager stop' [miran...@charon ~]$ |su -c '/sbin/service NetworkManager start The service command sets up a few things in the environment. In addi

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Remi Collet
Le 18/04/2009 18:59, Lars E. Pettersson a écrit : > Exactly what is the problem with the apache /etc/init.d/-script? One example (probably very specific, but I have to fight with it, in my first experience of sysadmin...) You use want to use apache with php and Oracle. In your root environment

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Kevin Kofler
Nathan Huang wrote: > [miran...@charon ~]$ su -c '/etc/init.d/NetworkManager stop' That's the braindead Debian way and should not be used in Fedora, that's what the "service" command is for. It's available even for Debian: http://packages.debian.org/sid/chkconfig Ubuntu these days ships a /usr/b

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Lars E. Pettersson
On 04/18/2009 04:53 PM, Remi Collet wrote: One typical issue is environment variable need to start "apache" defined in root interactive session and not during boot process. (Such variable must be add to /etc/sysconfig/apache) So please : don't use directly /etc/init.d/foo script Exactly what i

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Craig White
On Sat, 2009-04-18 at 23:15 +0800, Nathan Huang wrote: > Craig White wrote: > > On Sat, 2009-04-18 at 22:32 +0800, Nathan Huang wrote: > > > >> Hi guys > >> I face a problem, What 's the difference between these two commands? > >> > >> [miran...@charon ~]$ su -c '/etc/init.d/NetworkManager stop'

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Nathan Huang
Craig White wrote: On Sat, 2009-04-18 at 22:32 +0800, Nathan Huang wrote: Hi guys I face a problem, What 's the difference between these two commands? [miran...@charon ~]$ su -c '/etc/init.d/NetworkManager stop' [miran...@charon ~]$ |su -c '/sbin/service NetworkManager start ass

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Remi Collet
Le 18/04/2009 16:44, Tom Horsley a écrit : > distros don't install the scripts with the execute bit turned on. I really think this is a "best pratice" fedora should get in + -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list G

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Craig White
On Sat, 2009-04-18 at 22:32 +0800, Nathan Huang wrote: > Hi guys > I face a problem, What 's the difference between these two commands? > > [miran...@charon ~]$ su -c '/etc/init.d/NetworkManager stop' > > [miran...@charon ~]$ |su -c '/sbin/service NetworkManager start assuming that the | ch

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Remi Collet
Le 18/04/2009 16:44, Tom Horsley a écrit : > On Sat, 18 Apr 2009 22:32:37 +0800 > Nathan Huang wrote: > >> I face a problem, What 's the difference between these two commands? > > Nothing much, I don't think so. Main difference is "environment" which is clean before launch the service by the "

Re: What's the difference between /etc/init.d and /sbin/service

2009-04-18 Thread Tom Horsley
On Sat, 18 Apr 2009 22:32:37 +0800 Nathan Huang wrote: > I face a problem, What 's the difference between these two commands? Nothing much, there just happens to be an assortment of different ways to get service scripts going (which is, naturally, completely different on different linux distros).