1、 在/etc目录下生成脚本文件
/etc/rc.loginpro
内容如下
#!/bin/sh -e
#
# rc.loginpro
#
# 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/bin/loginpro
exit 0
2. 可执行权限
sudo chmod a+x /etc/rc.loginpro
3.创建快捷键
sudo ln -s /etc/rc.loginpro /etc/rc5.d/S99rc.loginpro
开机后就会后台运行loginpro程序。