[Pkg-sysvinit-devel] Bug#705254: (no subject)

gustavo panizzo (gfa) gfa at zumbi.com.ar
Sun May 3 15:22:31 UTC 2015


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



More information about the Pkg-sysvinit-devel mailing list