Page 1 of 1

service/servicesetup chkconfig functions

Posted: 13. Aug 2011, 20:21
by pwatk
Could we have options added to the service and/or servicesetup scripts to enable (chmod 775) the service without actually starting it in a similar way to chkconfig?

Thanks.

Re: service/servicesetup chkconfig functions

Posted: 16. Aug 2011, 12:22
by gapan
Hmm... well... adding enable/disable options in the service command is not hard at all. Adding it to the servicesetup script or gtkservicesetup would make the gui needlessly complex though. But even for the service command I'm not convinced of it's usefulness. Running

Code: Select all

chmod 755 /etc/rc.d/rc.foo
is just as easy as

Code: Select all

service enable foo
in my opinion.

Re: service/servicesetup chkconfig functions

Posted: 16. Aug 2011, 15:53
by pwatk
I'd use on/off instead of enable/disable to make it worth while but it's up to you.

Re: service/servicesetup chkconfig functions

Posted: 16. Aug 2011, 16:59
by thenktor
gapan wrote:Hmm... well... adding enable/disable options in the service command is not hard at all. Adding it to the servicesetup script or gtkservicesetup would make the gui needlessly complex though. But even for the service command I'm not convinced of it's usefulness. Running

Code: Select all

chmod 755 /etc/rc.d/rc.foo
is just as easy as

Code: Select all

service enable foo
in my opinion.
I agree ;)

Re: service/servicesetup chkconfig functions

Posted: 16. Aug 2011, 18:52
by pwatk
Then again, it's just as easy to do

Code: Select all

/etc/rc.d/rc.foo start
...as it is to do

Code: Select all

service start foo
Just a thought :D

Re: service/servicesetup chkconfig functions

Posted: 16. Aug 2011, 19:32
by thenktor
And this is exactly what I do :mrgreen: :geek:

Re: service/servicesetup chkconfig functions

Posted: 17. Aug 2011, 10:39
by gapan
That's also what I do if I want to just start the service. But "service start foo" also chmods it, so it's actually the equivalent of

Code: Select all

chmod +x /etc/rc.d/rc.foo
/etc/rc.d/rc.foo start

Re: service/servicesetup chkconfig functions

Posted: 17. Aug 2011, 22:51
by pwatk
Nevermind :roll:.