LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2012, 08:29 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Upstart job not running


Ubuntu 12.04 32 bit

This thread is a spawn from another one dealing with a power management/wireless network issue. The other issue is at least worked around but I have come across this more generic issue. I created a simple job which I want to start with upstart. However, I have been unable to get it to run. Here is my latest upstart file /etc/init/wifi_power_off.conf
Code:
# shut off power management on the wireless connection
# note that the thing is called eth1 not wlan0 as would be expected

start on started network-services

exec /sbin/iwconfig eth1 power off
exec touch /home/ken/hello_from_upstart
Please disregard if the iwconfig command works or not. That is another matter of conjecture. I added the touch command so I would see that the job is executing. I do not see the file being created and thus I conclude that the job did not run. Networking is in fact running and I can connect to the PC in question. I have also tried
Code:
start on RUNLEVEL=[2]
but that does not seem to work either.

The conf file is owned by root and is not marked executable - same as other jobs in /etc/init. I would like to get a handle on setting up an upstart job. I will sort out the wireless issue later. Can anyone provide some insight? I have been studying the Upstart Cookbook and it looks like my simple example should run.

TIA,

Ken
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upstart init: how can i create a new job manually? Richard.Yang Ubuntu 1 06-08-2012 08:35 PM
writing an upstart job - something I don't understand johnnymta Linux - Desktop 5 01-06-2011 04:05 AM
Am I running Upstart? zigmo Ubuntu 1 09-17-2010 09:14 PM
Cron job is not running dhirendrs Programming 1 08-25-2010 04:37 AM
Cron Job is not running akshathajagadish Linux - Newbie 2 10-15-2009 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:55 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