you can parse the chkconfig output

# chkconfig  -l neutron-server
neutron-server            0:off  1:off  2:on   3:on   4:on   5:on   6:off

# update-rc.d neutron-server disable
insserv: warning: current start runlevel(s) (empty) of script
`neutron-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
`neutron-server' overrides LSB defaults (0 1 6).

# chkconfig  -l neutron-server
neutron-server            0:off  1:off  2:off  3:off  4:off  5:off  6:off

# update-rc.d neutron-server enable

# chkconfig  -l neutron-server
neutron-server            0:off  1:off  2:on   3:on   4:on   5:on   6:off


chkconfig is perl, so you just can use their implementation


-- 
1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to