Odoo绿色版ubuntu开机启动服务解决方法

先切换到init.d目录:
cd /etc/init.d/
再ls会罗表出有od8这个(如果是其他比如odoo-server则同理),把它加到开机启动项,服务器reboot重启后不需要手动运行od8也能自动运行odoo了:

root@AY1406211813168:/etc/init.d# update-rc.d od8 defaults 95
Adding system startup for /etc/init.d/od8 ...
/etc/rc0.d/K95od8 -> ../init.d/od8
/etc/rc1.d/K95od8 -> ../init.d/od8
/etc/rc6.d/K95od8 -> ../init.d/od8
/etc/rc2.d/S95od8 -> ../init.d/od8
/etc/rc3.d/S95od8 -> ../init.d/od8
/etc/rc4.d/S95od8 -> ../init.d/od8
/etc/rc5.d/S95od8 -> ../init.d/od8
root@AY1406211813168:/etc/init.d# update-rc.d pg8 defaults 95
Adding system startup for /etc/init.d/pg8 ...
/etc/rc0.d/K95pg8 -> ../init.d/pg8
/etc/rc1.d/K95pg8 -> ../init.d/pg8
/etc/rc6.d/K95pg8 -> ../init.d/pg8
/etc/rc2.d/S95pg8 -> ../init.d/pg8
/etc/rc3.d/S95pg8 -> ../init.d/pg8
/etc/rc4.d/S95pg8 -> ../init.d/pg8
/etc/rc5.d/S95pg8 -> ../init.d/pg8
root@AY1406211813168:/etc/init.d#

标签: Odoo, 绿色版, ubuntu, 开机启动

添加新评论