LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 09-30-2009, 06:43 AM   #1
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Rep: Reputation: 0
upstart jobs


The following is a quote from "A Practical Guide to Ubuntu Linux" by Mark G. Sobell:

""The following administrator-defined job uses the exec keyword to execute a shell command. You can also use this keyword to execute a shell script stored in a file or a binary executable file.

$ cat /etc/event.d/mudat
start on runlevel 2
exec echo "Entering multiuser mode on " $(date) > /tmp/mudat.out

This file defines a task: It runs the echo shell command when the system enters multiuser mode (runlevel 2).""

As I've learnt one could use exec because exec does not return control to the original program.

My question is what exec for in the above example if anyway a task in the upstart system is a job that performs its work and returns to a waiting state when it is done.

Thanks in advance for your answers.

I've maarked the post as solved because I think I'm just careless - exec here is for a job to be monitored, just upstart syntax, right?

Last edited by newk; 09-30-2009 at 07:12 AM.
 
Old 09-30-2009, 07:13 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
You do know you have marked this thread solved?.
 
Old 09-30-2009, 07:27 AM   #3
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
???. I think I have found an explanation for myself and marked the thread as solved. What is wrong? Sorry for my careless because I was in a hurry and the explanations are a little later in the book. Sorry again.
 
Old 09-30-2009, 07:44 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Quote:
???. I think I have found an explanation for myself and marked the thread as solved. What is wrong?
Nothing wrong at all.
Just wanted to make sure that's what you wanted to do
 
Old 09-30-2009, 08:03 AM   #5
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks. *nixs are like new world outlook for me so sometimes I'm frustrated with concepts seemed clear to me. But as always solution is somewhere near and only time needed and of course not rush...
 
  


Reply


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
Upstart on Debian (Sid) Oops RodWC Debian 5 02-19-2010 12:54 PM
replacing Upstart with Runit making me nutz... Akonbobot Linux - Server 3 07-15-2008 05:42 PM
LXer: Interview with Scott, Ubuntu and Upstart developer LXer Syndicated Linux News 0 04-27-2007 08:47 PM
LXer: Replacing init with Upstart LXer Syndicated Linux News 0 10-04-2006 09:21 PM
LXer: Upstart in Universe LXer Syndicated Linux News 0 08-28-2006 05:03 AM


All times are GMT -5. The time now is 06:51 AM.

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