LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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 06:12 AM.
 
Old 09-30-2009, 06:13 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
You do know you have marked this thread solved?.
 
Old 09-30-2009, 06: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, 06:44 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

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, 07: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



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 11:54 AM
replacing Upstart with Runit making me nutz... Akonbobot Linux - Server 3 07-15-2008 04:42 PM
LXer: Interview with Scott, Ubuntu and Upstart developer LXer Syndicated Linux News 0 04-27-2007 07:47 PM
LXer: Replacing init with Upstart LXer Syndicated Linux News 0 10-04-2006 08:21 PM
LXer: Upstart in Universe LXer Syndicated Linux News 0 08-28-2006 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 PM.

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
Open Source Consulting | Domain Registration