#!/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.
/wgcloud/wgcloud-v3.3.5/agent/start.sh
exit 0
/wgcloud/wgcloud-v3.3.5/agent/start.sh
为自己的agent实际路径,写在exit 0之前sudo chmod +x /etc/rc.local
ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/