Software :: Starting A Job At Startup Without Logging In?
Nov 30, 2010
I'm trying to think of the best way to have a job start up on it's own when a system (running CentOS 5) boots up. The job is a simple python script. However, there are some interesting conditions that need to be met:
- As stated, script needs to start and run in the background when the system boots up, but without anyone logging in.
- This script needs to be readable only by root, which means it will need to be run as root
- Only 1 person will have root access, meaning nobody else will have access to see this script or it's status.
The entire point is to have this thing running all the time, even if the system reboots, but to make it so nobody can see the script or view it's source, unless they have root access, which only 1 person will have.
I can think of plenty of ways to have things start up automatically when a system comes up, but they all involve having the user log in as part of it. How can I have a listening python script start up, at boot up, on it's own, without root actually logging in?
KDE 3.5.4Kernel 2.6.17.13Slack 11A few weeks ago, my system locked up and I had to do a hard reboot (hold down power button). When I powered back on, the programs (KDE System Guard, Konsole window, MythFrontEnd) that were running at the time of the lockup appeared again. I exited System Guard and the Konsole window and then restarted normally. However, they keep appearing in the same spot when I log in to KDE. I looked through some logs in /var/log, but I don't see anything I haven't seen before.I deleted the /home/myuser/.kde/cache-hostname folder and its contents while in single-user mode, but that had no impact
I have a couple apps that I cannot figure out how to prevent them from starting automatically upon logging in. They are NOT listed in my Startup Applications under preferences. For example, pidgin. Pidgin automatically starts at each login even though it is not in the startup apps nor can I find an option in pidgin itself. Tomboy is another. I always get an error that tomboy cannot be added to my panel when I restart. The error in the tomboy panel log is that tomboy is already running. Does ubuntu have a hidden "start up" folder like Windows does in the start menu? Where can I clear this file/folder?
I had xp sp3 installed on my system celeron 2.0 ghz.and two hard disks.I had installed succesfully ubuntu on other disk. after restart I can see dual boot menu. one xp professionl and other ubuntu. I clicked on the ubuntu but after logging only a cursur blinks on a blank screen. I can see the choice menu "normal","verbose" etc but when I started in normal mode, a blank screen appears and a cursor blinks.
My terminal text is unreadable. Where as the default output would usually fill half the screen it probably fills around 1/20th now. Basically it looks like the text is 1px in size. I was about to install a graphics driver (nvidia) but doh I can't see what I'm typing... I can't start gdm even after memorising the process of logging in and starting gdm (I think gdm is failing to start anyway) I'm using the default xorg.conf provided with the LiveCD;
First of all I'm using Ubuntu 9.10.I have tried using System/Preferences/StartupApplicationsI added:java -Xint -cp /home/Edgar/dist/Edagr.jar:/home/Edgar/dist/Annotator.jar com.ionetrics.edgar.EdgarI don't know if I am calling this incorrectly or not. I know that I can call this from a terminal and it will run correctly.However it will not run at startup. I have added Teamviewer to startup and it runs properly.
I need to start firestarter at starup, but the application need root credentials, I use "Startup Applications" when I need a program to start upon login, but firestarter need input the su password... how could I get around this?
I want to start a service and a script SiteMonitor.sh at startup.
Here is brief working of SiteMonitor.sh(This script monitors the ip addresses of machines which are using http service of the host. This script checks this after every 5 seconds therefore i have run it at background.)
To start with i have modified /etc/rc.local file.
Here is the content of my /etc/rc.local file.
Code: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff.
i want to run my program and when it starts up shows an option to say : do you want to start this program at start up? and then if yes copy this program at start up how i can do this?
Pidgin auto starts with the computer, I've closed out of it and killed the process and restarted to make sure it wasn't saving the session, it still starts, theres no option in any of the settings for pidgin to turn it off, is there a way to?
This machine has a combined key/indicator light to turn the wireless networking on/off The change of state of the switch is detected by software with the switch off iwconfig shows
I'd like to reconfigure vsftpd so that it does not start on boot (and I can enable/disable it using service vsftpd start/stop).
Though I've seen posts in the forums that stated that upstart jobs can be disabled by moving the /etc/init/job.conf file, other sites commented that the original file will be recreated on updates.
The other two suggestions were to alter the upstart script such that either the process starts on never:
Code: start on (never and filesystem and net-device-up IFACE!=lo) stop on runlevel [!2345]
I currently got Ubuntu 10.0.4 server edition running on my server. I got 2 network cards in it. One for (eth0) the pppoe connection and the other one (eth1) for dhcp and network.
When i installed dhcpd3 server a couple of days ago, it wouldn't start. So i searched the web and came on the conclusion that i have to do " sudo ifconfig eth1 down sudo ifconfig eth1 up 192.168.0.1"
Problem is i don't have connection with this pc all the time. So if i have to restart it, the dhcp server won't start.
I had a hard drive failure and have recovered (rsync) my backup root filesystem onto a new drive. This all seems to be fine, except that at least two services no longer start: mysql and apache2.I can start successfully both through
although mysql throws a warning about Upstart. Neither start automatically.My system is Ubuntu 10.04.1 LTS x86_64. Part of my reolution actions has involved a kernel update to 2.6.32-27-generic.I have tried to resolve the mysql issue first:
Code:
sudo update-rc.d -f mysql remove sudo update-rc.d mysql defaults
Code:
sudo apt-get remove --purge mysql-server sudo apt-get install mysql-server adding them /etc/init.d/... start commands to /etc/init.d/rc.local script and to a session startup script
checking the services are in rcX.d (using bum and sysv-rc-conf) Ensuring there's a .conf file in /etc/init (which there is).I can't see anything in syslog which would suggest if the system has tried to start these but failed, but then I may be looking in the wrong place. I think they're not starting at all. I wonder if it's something to do with the restore, perhaps symlinks?
I'm not very sure when this issue started. Anyway, the system finally boots and I haven't had any further problems, but I somehow notice the booting to be a bit slower since this error appeared and I don't like watching the red letters that say "failed" every time I switch the computer on. I googled this before posting it, and other users have had this issue, but the solutions that worked for them didn't work for me.
This is the content of my /etc/network/interfaces file: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback
I installed OS11.4 on my old laptop, Compaq Armada E500., 512MB RAM, ATI Rage Mobility. During installation I chose "minimal server" and added some development packages, lxde and a little more. I chose to start in runlevel 3 which is full networking without X. Still, when computer is booted it tries to start Xorg which doesn't work because of some problem w driver. The start-up seems to stop there, it never loads completely - seems most things in runlevel 3 are not started (see below) I can manually login on laptop and fix it - but never permanently, same thing again after reboot.
I have checked /etc/inittab & yast - both states default runlevel is 3. I have checked services to be started both directly, browsing directory /etc/rc.d/rc3.d/, and with YaST, it is very clear X should not load during boot. But, as said, it does.. I don't really care about the driver problem right now, I can fix that later when I have more time. So how do I stop X from getting started automatically?
More info, if needed: The installation also stopped with message on tty1 "Starting YaST2" and tty8 showing errors with graphics driver (mach64). The system seemed to be installed though, so I simply rebooted (issuing "reboot" from tty2).
[Code]....
I'm not completely sure where it stops, network is configured but keyboard is wrong and mysql & everything after is not started, so somewhere between S02network and S06kbd. I'm going to use it as a server for testing purposes so no X is actually needed - however I do want to have X & lxde installed just in case, my Internet connection at home is terribly slow so I need most things I might need in the future installed today.
I've tried to find a solution on other posts but can't find one.Karmic keeps logging me out automatically. Sometimes there are less than five minutes between logouts.Initially I upgraded from Jaunty, so, in case that was at fault, I then did a clean install, but that hasn't worked either.I've been hoping one of the updates will fix it, but no joy ye
Why does Ubuntu 9.10 keep logging me out? This only started about a week ago and it seems to be getting worse. I have not installed any new hardware or software. The only thing that's been installed recently are the routine Ubuntu updates. I just got logged out 4 times in less than 10 minutes while I was trying to type a reply to a message in another forum. I had to reboot into WinXP to post this message and finish my reply in the other forum. This is getting REAL annoying and I can't find any solutions. Someone suggested that uninstalling Compiz would fix it so I did that, but it seems to have gotten worse. I've really liked Ubuntu until now, but I'm on the verge of trashing it if this problem can't be fixed.
A week ago (or two weeks ago) I noticed that my computer is logged out even though I left it logged on overnight. when I got up in the morning, instead I find a user logged in fluxbox, I saw that I was in front of the screen to log in.that night only ktorrent was running (turn off after downloading and something like that is disabled) and i adjusted command "at" that in the 9 am starts "rxvt + mplayer" that will let the online radio station. later the same happened to me, however during the day, as I watched a site in Firefox. ktorrent was turned off.
following couple of days nothing has happened (though I did not use computer to much), until tonight. this time I wrote something in Leafpad and my firefox and ktorrent was on.i'm sending you from /var/log messages and dmesg, but if you need something more i will upload that too, because i saved all logs.also, in addition there is a screenshot of programs that I recently installed on the computer (you will see the dates) - software I took from SlackBuild and made packages.i am using slim and gdm...have slackware 13.1, kernel 2.6.33.4, fluxbox 1.1.1.
I'm trying to install F15 for a friend, (works great for me btw) and after getting to the desktop and sometimes during install set up, it just keeps logging off by itself and then back to the desktop. This also happened on my computer a couple of times, but I managed to get it installed.Is this a known bug? Is there anything that can be done about it? Also, is there a fedora iso that has all current updates built in? He really wants F15, but we are stuck right now. and is there an "alternate" cd for fedora without gui install?
I have an ACER TravelMate 6003LMI with openSUSE 11.3 and I updated now to KDE 4.5. So far, the update went fine, but now I cannot login anymore. openSUSE 11.3 boots up to the login prompt, I'm logging in, the KDE progress bar reaches about 75% and then it hangs up.
/etc/X11/xim: Checking whether an input method should be started. sourcing /etc/sysconfig/language to get the value of INPUT_METHOD INPUT_METHOD is not set or empty (no user selected input method). Trying to start a default input method for the locale de_DE.UTF-8 ... There is no default input method for the current locale. Dummy input method "none" (do not use any fancy input method by default) startkde: Starting up... Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kbuildsycoca4 running... Fetched layout groups from X server: layouts: ("de") variants: ("nodeadkeys") Invalid D-BUS member name 'idle-hint' found in interface 'org.freedesktop.ConsoleKit.Session' while parsing introspection .....
I've installed OpenSUSE on my server and want to set ssh to log every command, which is send to system over it.
I've found this in my sshd_config:
I guess that both of those directives has to be uncommented, but I'd like to log every command, not only authorization (login/logout via SSH). I just want to know, if someone breaks into my system, what did he do.
how I could run a command before logging on, in addition, the command needs to run as root.
This is going back to some few weeks months ago, shortly after I upgraded to Karmic Koala. Since then, the sound device doesn't work automatically. I donno why, but alsa doesn't seem to detect the audio device.
Once I have booted the machine, I can access sound by doing:
Code: sudo alsa force-reload
Needless to say, that's pretty annoying and I posted two or three threads to find a solution to this problem, but never got anywhere.
Failing that I get the issue resolved, running the 'alsa force-reload' command at boot up, so that when I'm logged in, it's already working.
after finally managing to install perfect world international rising tide on my ubuntu 9.04 and after i fixed the cursor problem ,i finally managed to run the game however when i wanted to enter my account to actually play the game ,just after logging in the game crushes ,i really want to play the game ,plz help me.i ran it through wine in the console and i got this: fixme:ntdll:find_reg_tz_info Can't find matching timezone on a side note is there a way to get rid of the black flashing boxes on the screen.
When Ubuntu 10.10 loads I get the above pop-up after logging in.Does anyone know how I would go about finding out what this refers to, or how I could address it?
I installed Ubuntu Studio 9.0.4., as a VMWare virtual machine in OSX to check it out. I specified a password to 'root', did not add any other users. (I run the whole show as "admin" in OSX and Windows as well. If some kid wants my files - The mp3's are under "Music".)
Anyhow, the Ubuntu Studio install went through, the nifty login splash screen came up. I tried to login in a "root" with my password, and got the following thing into my face:
"The system administrator is not allowed to login from this screen"
OK, so what "other" login screen does Ubuntu have, then?
Ever since I upgraded to Ubuntu 10.10 on my laptop, I've been having this problem. Every now and then, for seemingly no reason at all, the screen will go black and after a few seconds I find myself at the login screen. I've kept track of when it happens and there is seemingly no pattern to it; sometimes it will happen when I'm watching a video, sometimes it just happens when I'm browsing the internet, and sometimes it happens when I'm not doing anything.
I notice that one of the functions I can make a keyboard shortcut for in KDE is Log Out Without Confirmation. This might show a lack of imagination, but when might I want to do that?