detecting by init script is better