Add sudo into zrpcd process start command
Add starting script into /etc/rc.d/rc.local too
Change-Id: I3c724ff60d4c3feb7379b1a8bbeca8a928cfe81b
Signed-off-by: tomsou <soth@intracom-telecom.com>
(cherry picked from commit
577ccdd1e7ce654ebc7479d8bd1e232abb922571)
virt_cmds.append({con.VIRT_RUN_CMD: "chmod +x /etc/rc.d/rc.local"})
virt_cmds.append({
con.VIRT_RUN_CMD:
- "echo '/opt/quagga/etc/init.d/zrpcd start' > "
+ "echo 'sudo /opt/quagga/etc/init.d/zrpcd start' > "
"/opt/quagga/etc/init.d/zrpcd_start.sh"})
virt_cmds.append({
con.VIRT_RUN_CMD: "chmod +x /opt/quagga/etc/init.d/"
virt_cmds.append({
con.VIRT_RUN_CMD: "sed -i '$a /opt/quagga/etc/"
"init.d/zrpcd_start.sh' /etc/rc.local "})
+ virt_cmds.append({
+ con.VIRT_RUN_CMD: "sed -i '$a /opt/quagga/etc/"
+ "init.d/zrpcd_start.sh' /etc/rc.d/rc.local"})
logging.info("ZRPCD process started")
dataplane = ds_opts['dataplane']