Code: Select all
start on desktop-session-start
stop on desktop-shutdown
respawn
script
export DISPLAY=:0
sleep 5
exec /.1/Projects/UpstartTest/start.sh &
end script
After reboot my computer. When I typed:
Code: Select all
[root@mg-CentOS ~]# initctl status test
test stop/waiting
Code: Select all
initctl start test
How can I run this upstart script after user login (desktop started) ? I am trying to find detailed documents for CentOS for upstart but there is no. Could you please kindly help me how to solve this issue. I am working on it 3 days