[OpenBSD] change myname w/o restarting box
I changed the host name in "/etc/myname" but the change would not take effect unless and until I restart the box as this file is read by netstart(1) during startup.
Is there any way to get the change take effect without rebooting the box? |
As root:
Code:
hostname `cat /etc/myname` It's actually the command run by the netstart script to set it in the first place. |
Hmm, it's possible that
Code:
# sh /etc/netstart if0 |
All times are GMT -5. The time now is 01:21 AM. |