This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
proxmox:1_2_3_fresh_5.x_proxmox [2018/01/11 20:24] moliver@uclv |
proxmox:1_2_3_fresh_5.x_proxmox [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 109: | Line 109: | ||
ntpdate -v 10.12.1.250 | ntpdate -v 10.12.1.250 | ||
+ | |||
+ | |||
+ | cat <<EoT >/etc/rc.local | ||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | |||
+ | /usr/sbin/ntpdate 10.12.1.250 | ||
+ | |||
+ | exit 0 | ||
+ | EoT | ||
+ | |||
+ | chmod +x /etc/rc.local | ||
+ | systemctl daemon-reload | ||
+ | systemctl start rc-local | ||
+ | systemctl status rc-local | ||
+ | |||
+ | |||
EndOfScript | EndOfScript |