service/servicesetup chkconfig functions

If you have any suggestions or ideas about improving Salix, here's the place to post them.
Post Reply
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

service/servicesetup chkconfig functions

Post 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.
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: service/servicesetup chkconfig functions

Post 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.
Image
Image
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: service/servicesetup chkconfig functions

Post by pwatk »

I'd use on/off instead of enable/disable to make it worth while but it's up to you.
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: service/servicesetup chkconfig functions

Post 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 ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: service/servicesetup chkconfig functions

Post 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
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: service/servicesetup chkconfig functions

Post by thenktor »

And this is exactly what I do :mrgreen: :geek:
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: service/servicesetup chkconfig functions

Post 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
Image
Image
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: service/servicesetup chkconfig functions

Post by pwatk »

Nevermind :roll:.
Image
Post Reply