On Maverick + up-to-date on updates on Mini ITX (Asus AT3N7A-I) I have a Perl script that I want to run continually to extract values from XML that appears on a USB port every 5 seconds and stuff the extracted values into an RR Database (RRD). I have created an Upstart job, called currentCost.conf (permissions=644 owner=root): #readCurrentCostData4RRD.pl daemon
description "regular background program processing daemon"
start on runlevel [5]
stop on runlevel [!5]
expect fork
respawn
exec perl /home/greg/currentCost/readCurrentCostData4RRD.pl > /tmp/RCCD4RRD.out 2>&1
Like the title stated Anyone with experience or suggestion, please do share. I've tinkered all night with this thing. Never get the VBox service I created to start.Here is my final code before I dried my brain.
I installed MySQL and Apache2 to develop & test out the site I'm writing. However since I'll be using them purely for internal use (not exposed to the Net), I don't want them to start with every boot-up, but would like to start them manually when I desire, and stop them after use.With previous Ubuntu (Jaunty) I'd used chkconfig to configure services, but since the current version (Maverick) uses Upstart, is chkconfig still applicable?
I also installed 'bum' (Boot-Up Manager), but strangely, it displays the MySQL server as "unchecked" even though it's running (and starts at boot-up), so I cant see how I can prevent it from starting at boot-up through bum. chkconfig also displays MySQL as not active at runlevel 5, when in fact, it is.
I'd like to know what's the recommended (official) way to configure boot-up services with the Upstart system? I don't suppose directly editing the *.conf files in /etc/init is the best (or even correct) way?
Code: root@tux:~# start smbd smbd start/running, process 16067 root@tux:~#
oh and stop firestarter. Ok the firewall issue, is probably simple. I am more concerned that an upstart task won't start. I have checked in boot-up manager, and it is asked to start. This was an upgrade from Lucid, where I hadno problems.
I have a CentOS 5.4 box running usermin/virtualmin and have been keeping it up to date. Recently all the updates have started failing because yum is broken somehow. Even if I just try to get a version or something here is the response I get from the command line:
# yum -v Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum
[Code]....
I have seen a lot online about problems with yum suggesting "yum clean all" as a fix - but I can't get yum to even start so, of course, that is not an option. I have done nothing manually to this box - the last update must have caused this issue. I also dunno much about perl but I see no problem with the line:
I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.
The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.
I searched for it and found this link:url
My plan is to include this function:
Code: sub system_bash { my @args = ( "bash", "-c", shift ); system(@args); } Then I could simply change all calls to system into system_bash and it should work?
The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?
In the script there are lots of places like this:
my $error = system($cmd); if ($error) { die/warn "some error message"; }
Shouldn't there be a return in the system_bash function?
I want to extend my perl capabilities using CGI. So, could you please tell me where to start and how to start my cgi scripts on linux RHEL AS 4 system.
I used to run this script just fine on my old server (Debian 5 Lenny x32)¦. but doesnt seem to work with this new one though both will have different software installed.I tell the script to load and I get: 04:55 -!- Irssi: Error loading module testScript/testScript: /user/.irssi/scripts/autorun/testScript.pl: invalid ELF header
The script code:
Code: #/script load autorun/testScript.pl use Irssi; use Irssi::Irc; #use strict; use vars qw($VERSION %IRSSI);
Just upgraded kubuntu to Lucid and found no KDE installed: bad news: if you're on kubuntu KDE should be upgraded automatically. So using kpackagekit in gnome installed the standard metapackage and got the option to log in with KDE (good news) but then KDE failed: segmentation fault in knotify4.it would not report the error: too little information. it dropped me back into an incomplete gnome environment (no top and bottom tool lines).
Ubuntu 9.10 Mono 2.4.2.3 On running; $ mone /path/to/.exe following warning popup:
Code: Fatal Error System.ArgumentOutOfRangeException. Argument is out of range Parameter name: index at System Collections Generic List`1 [System String] get_item (int32 index) [0x00000] at Verse_of_the_Day.MainForm.ctor () [0x00000] at (wrapper remoting-invoke_with-check) Verse of the_Day.MainForm.ctor () at Verse_of_the_Day.English.ReadWrite () [0x0000] I have been searching around and could not find a solution.
I have been using compiz on my laptop loaded with Lucid,without any problems.Recently i reinstalled lucid but now i dont have a compositing manager, I try
I just installed Ubuntu 10.04 fresh and was putting my preferences back in for Firefox and MythTV and such when I noticed Evolution wouldn't start. I would click on it and the cursor would change for about 5 seconds and then nothing. I tried uninstalling Evolution (big mistake), but after I got back into the desktop, Evolution still wouldn't start. I can't seem to find anything around here that deals with this. Where should I start to debug this?
Awhile back I was playing around with Plymouth and GDM resolutions. I followed some wrong instructions and screwed up my GDM. I have fixed my GDM, sorta, but at times it will not start or when it does the login screen has strange pixel errors.
Sometimes it starts fine without any problems or pixel errors. Other times I have to boot 2 to 3 times before GDM will start.
If GDM starts with pixel errors, I can still login to Ubuntu and the rest of the OS runs fine. Pixel errors only happen in GDM.
When GDM fails to start I get a blank black screen. Cannot enter command line. OS seems frozen and I have to reboot.
I'm running desktop Ubuntu 9.10 on my Dell laptop. Previously it was Ubuntu 9.04. After some period of time (lets say 3-4 months) my X fails to start automatically after some restart calls. If that takes place my network manager applet doesn't start either (after I do startx).
I get a perfect server boot meaning there's no Xorg started. Command line interface is all I get starting from login and further.
How to resolve this apache2 problem I keep getting, I have installed a debian LAMP server with ispconfig3 and everytime I reboot apache fails to start, I don't know and I have done some research but nothing seems to work, which leads me to reinstall everything from scratch again, I think I have reinstalled at least 10x or more.
I've got a couple of nagging issues that may or may not be related to each other. First, although I have this machine set to log me on automatically (I'm the only user ever and there's no public access) it doesn't; I get the standard login welcome screen. In the system menu (from Applications) I have two login managers: "Login Screen" and "Login Screen (GDM2)". The first of these shows I'm configured for automatic login, as does the custom.conf file in /etc/gdm. However when I click its "unlock" button, it flashes orange momentarily but nothing else happens. The second manager doesn't seem to have any effect on the problem...
The other issue is that my networking fails to start during boot-up; I'm not using the network manager applet and am not starting it; instead I have the three NICs in the machine (which serves as the router and gateway for my LAN) configured in /etc/network/interfaces. Once I am logged in, I can run "sudo service networking start" from a Terminal window and everything works properly, but adding that same line to /etc/rc.local (minus the "sudo" of course) had no effect on the problem. Both issues happen only at boot time, and since this machine normally runs 24/7 except immediately after certain updates or when troubleshooting they're not show-stoppers, but I greatly prefer to have my systems working the way I've configured them rather than going off in other directions!
I've just updated to 11.04 from 10.10.After restarting desktop does not startIt says [OK] for every command line, but nothing 'graphical' happensOn and other console I tried:
Since about one week, my OpenSuse 11.1 sometimes does not start automatically KDE 3.5 as configured. This failure does not occur every start up, just from time to time.
It stops booting in command line mode telling me:
The last changes i did were installing VMWare Server 2, could this take effect? Does anybody have an idea? Where can I find the boot logfiles?
I've just upgraded to 9.10, and mysql fails to start. When I do an /etc/init.d/mysql start, I just get * Starting MySQL database server mysqld ...fail!with no additional errors or information to say what went wrong. I saw this thread http://ubuntuforums.org/showthread.php?t=1322070 but the fix mentioned does not apply, as I don't have the #skip bsd line in my config file.
My ubuntu server was working normally but it suddenly failed to start, stopping after the following message: init: ureadahead-other main process (587) terminated with status 4 after this message, the system halts and does not finish the start up processes.
If I start the server in recovery mode, I get: init: ureadahead-other main process (587) terminated with status 4 [ 21.892940] ACPI: I/O resource w83627hf [0x295-0x296] conflicts with ACPI region HWMI [0x295-0x296] the system also halts and does not start. Right now, I can not use the server at all.
i have installed ubuntu 9.10 inside windows vista.now when i start my system i get option to select windows or ubuntu. windows can start successfully but ubuntu start up fails and give grub shell prompt as :
I have installed Scilab through the Ubuntu software center. When I try to launch it from the Applications menu it will not start. Same hapens if i try to launch it using alt-F2. But I can launch it using the terminal.