【原创】ubuntu 添加开启启动项
Author: chad
Mail: linczone@163.com
ubuntu 添加开启启动项,修改/etc/rc.local,如下:
#
# 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.
/home/yr/motion4meter/build/bin/motion -c /home/yr/motion4meter/build/bin/motion-dist.conf &
/home/yr/chaobiao/meter /home/yr/chaobiao/config.ini &
exit 0