Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-25-2015, 02:38 PM   #1
LQ Newbie
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Ubuntu crontab issue

I have to run `crontab` in `xvfb display mode` forever when the system restarts...below is crontab code....

@reboot nohup Xvfb :1 -screen 0 1024x768x24 & export DISPLAY=":1"
@reboot /usr/bin/forever start -c /usr/bin/node test/app.js

After the system reboots... I have to run both the commands sequentially..second command works fine...but i think Xvfb is not starting...if possible i want to run xvfb also in forever mode if it stops unexpectedly,how to fix this?

i have also tried running script...

/usr/bin/nohup Xvfb :1 -screen 0 1024x768x24 &
export DISPLAY=":1";
/usr/bin/forever start -c /usr/bin/node test/app.js;

Old 12-25-2015, 06:07 PM   #2
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,219

Rep: Reputation: Disabled
Xvfb is probably not found without full path.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] crontab issue stockton Linux - General 6 01-16-2015 05:14 AM
Crontab issue preetham.66666 Linux - Server 4 01-11-2015 11:36 PM
crontab issue,need help aditya_moon Linux - Newbie 2 02-07-2011 11:54 PM
crontab issue adnanm Linux - Newbie 1 03-16-2007 03:28 AM
crontab issue lappen Linux - Newbie 6 05-24-2004 06:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration