root 用户程序开机自启动,一般使用 chkconfig program on

普通用户程序怎么开机自启动呢,可以使用 rc.local

vi /etc/rc.local
su - git -c 'nohup /home/git/gitea web &'