Re-implement function: set_host_name by _add_rc_conf
Add assertion for checking options' type.