the startup sequence, from the time the kernel goes live to when all services are up and running

learn more… | top users | synonyms

5
votes
4answers
15k views

How to auto-start a service (apache2) with Linux Mint

(Strangley) My installed Apache2 does not start up when logging in to Linux Mint. Running this command gets it going: sudo service apache2 start How should I attempt to start up this service upon ...
0
votes
2answers
54 views

While Linux is rebooting which directory is used to search for the executable system binaries?

While Linux is rebooting which sbin directory is used to execute the system binaries. As per my knowledge it used to load the binaries in the directory sbin directory . But in my system I find so ...
1
vote
2answers
50 views

Begin root process at boot?

I'd like to start a background process as root when my Linux install boots. Can I just add it to a directory or a configuration file?
1
vote
1answer
61 views

Run a command when system starts for any users [duplicate]

How can my system run a command every time that it is started? Is there any script that the system runs when it is starting? I'm using CentOS 6.2.
3
votes
3answers
2k views

Disabling X server on Fedora 17

How can I prevent the X server from starting up on Fedora 17? In older versions the user should edit /etc/inittab but in this version (I didn't check this on previous versions) Fedora uses some other ...
1
vote
2answers
632 views

How to disable inetd and sendmail under OpenBSD 5.1?

# grep '^inetd_flags="' /etc/rc.conf inetd_flags="NO" # for normal use: "" # grep -i 'sendmail_flags="NO"' /etc/rc.conf sendmail_flags="NO" # after a reboot..: two questions: # ps ...
3
votes
1answer
2k views

Problem starting a service running Debian

I want to run a UPNP renderer as a service on a Raspberry Pi using Raspian, a Debian based distro. Actually, everything runs fine but one thing : I can't manage to start the service at boot time at ...
4
votes
2answers
3k views

Run script on start up after everything else

OK, so there's a service (nagios) running on a Debian box that runs just fine, except for one very specific issue that only occurs after the box has been re-started. The issue is easily fixed by ...
2
votes
2answers
210 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
2
votes
2answers
817 views

What is the sequence loading linux kernel module on startup? How priority is set to them?

I have a Linux kernel module which I compiled dynamically. How is it added to startup? There are lot of .ko files in /lib/modules. How is priority set for loading these modules?
3
votes
1answer
1k views

Resetting password in Linux Mint when disk is encrypted

I have a system (VM, actually) with Linux Mint 15 on it. The disk is encrypted, but I remember that password -- just not the password for my account. I've tried changing the command in GRUB from ro ...
2
votes
1answer
285 views

How to shut down Linux if idle for 30+ minutes?

We define "idle" based on how screen savers in Linux define it. I found this tool called "xautolock". I tested it like this: /usr/X11R6/bin/xautolock -time 1 -locker "notify-send test" I placed ...
2
votes
2answers
134 views

How to associate a script at boot time to a specific run level?

I am trying to understand how run levels work. I understand the meaning of the 7 run levels and I understand that they were usually configured by /etc/inittab, which used to call /etc/init.d/rc, which ...
0
votes
0answers
52 views

How to change layout as soon as a USB keyboard is attached automatically

I have a USB keyboard set, I attach it to my computer to use it with another language layout. The USB keyboad will type (e.g.) Russain. While the other (main) keyboard set will type English. To set ...
1
vote
1answer
477 views

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands. Where would I ...
2
votes
1answer
47 views

Persistent script to check if my webserver work with low budget vps?

I have a low budget vps and they constantly change a lot and my webserver is often unable to reach. Is there a shell script that is persistent and can check my webserver is running and if not make it ...
1
vote
2answers
233 views

Booting into shell instead of graphical interface [duplicate]

I have a laptop with lubuntu. It's great but I wish LXDE was optional instead of autostarting. So my question is, what can I do to make it boot directly into a text only mode, not loading anything ...
2
votes
1answer
6k views

Disabling graphical login in Debian wheezy

I have installed Debian wheezy on my machine with a netinst image, now I would like to deactivate the desktop and boot straight to the command line, not only that but I would like to not waste any ...
1
vote
1answer
95 views

Segmentation fault when executing a command in rc.local

I'm trying to execute xbindkeys -f /etc/xbindkeysrc command on the start up. I've put this in my rc.local including another command : #!/bin/bash echo OFF > /sys/kernel/debug/vgaswitcheroo/switch ...
2
votes
4answers
6k views

Purpose and typical usage of /etc/rc.local

The header looks like this: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure that the script will "exit 0" on success or any other # value on error. What is ...
1
vote
2answers
3k views

Cannot get rc.local to automatically run at all

so I've been trying to get the /etc/rc.local script to run, and for the life of me, nothing seems to work. I can run it manually by using service rc.local start, and it just echos 'hi' to a file in my ...
4
votes
1answer
779 views

Fixing a broken X initialization

Here are the symptoms: On reboot of my Fedora 14 system, I get to the Fedora loading screen progress bar. The system seems to progress normally, then the nvidia logo flashes, a wait cursor shows, ...
1
vote
1answer
336 views

Finding log file of ntp daemon in Ubuntu 10.04 LTS

My Ubuntu is set to run ntp before dovecot at startup. (See my earlier question: The rc0.d,rc1.d,... directories in /etc in Ubuntu 10.04 LTS) However, I suspect that dovecot may have finished ...
1
vote
2answers
2k views

Starting Qt Application On Startup for Embedded Linux

I'm trying to launch get a Qt application to launch after immediately after booting up. When booted, the Linux image does nothing more than launch an X server and a terminal. It also has the cron ...
1
vote
2answers
40 views

Running script on system start as given user

I have a small script on a dev/staging server that runs services inside tmux. The script just creates a few sessions with a few windows each in which various services are running. How can I make ...
2
votes
2answers
3k views

Run a sudo (or startup) python script from cron on a Raspberry Pi?

I'm helping out with an art project (http://stargateeggbeater.com/ for those interested) built on Raspberry Pi. The RPi controls an addressable LED strip through the GPIO, using the spidev device per ...
1
vote
1answer
835 views

adding a program on start-up by using LSBInitScripts

I use Debian Lenny (I know lenny is old and other bla bla) and would like to place a program on the start-up. I use update-rc.d by adding an executable file on /etc/init.d. By referring to ...
1
vote
1answer
324 views

Udev rules involving X11 don't run on startup

I have some udev rules written to run when I connect certain usb devices. For example, I change pointer velocity for certain mice, and change xmodmaps for particular keyboards. The scripts work well ...
1
vote
2answers
1k views

postgresql service start issues

I'm attempting to build a box via Fabric on Openstack. Part of the install involves installing and running PostgreSQL. This command works fine: $ sudo service postgresql initdb This command ...
1
vote
1answer
30 views

Do live (versions of) unix distributions ever automatically pick up config info from a OS already installed on the machine?

Maybe this is a silly question, the answer is probably no; but I gotta ask. For example, if I have an Ubuntu Live USB running on a machine with Ubuntu already installed, might the Live OS ever look ...
0
votes
0answers
231 views

Ubuntu cannot start from terminal

Ubuntu 12.04 By a mistake, I stopped lightdm. Then switched to tty1, and rebooted. Now, After startup, It just came a black screen with a cursor, can type nothing. I tried Ctrl+F1 to F12 (and ...
4
votes
5answers
279 views

How to disable graphical shell?

I have a Linux system (Ubuntu) running in a VM, but now I want to disable the graphical shell. Where in the startup process are the graphical components launched? Is it some run-level dependent ...
0
votes
1answer
3k views

Auto-restart an process when it crashes

I have an app that I need to autostart when the OS starts. I am running in a CentOS 6, so I am using a LSB init script placed in /etc/init.d. So far this is fine and working. Now....besides that, ...
2
votes
2answers
4k views

Automate modprobe command at boot time on Fedora

My distribution is Fedora 17 Gnome. Every time I reboot/restart my computer I need to run this command as root: modprobe rt2800usb How can I make it permanent?
3
votes
3answers
146 views

Other than /etc/rc.conf what other config files control system services at boot time?

I am still very new to FreeBSD, from what I have learned in manuals, /etc/rc.conf controls system services at boot time. There is no mention of sendmail and syslogd in /etc/rc.conf, so how come they ...
0
votes
1answer
202 views

Services in /etc/rc.local prevent the system from finishing to boot

I start some services such as Tomcat and MySQL from a shell script /etc/rc.local. There is a while loop to restart the services. This loop is continuously running and my system is not booting. How can ...
2
votes
1answer
912 views

Run XMonad's startup hook only on initial startup

I have the following startupHook in my xmonad.hs , startupHook = spawn "~/.xmonad/autostart" I am starting many apps and daemons in this script and it is written to run only once on startup. But ...
10
votes
5answers
9k views

Stop program running at startup in Linux

How do I stop a program running at startup in Linux. I want to remove some apps from startup to allow them to be managed by supervisord e.g apache2
8
votes
5answers
2k views

On Linux, is there an rc.local equivalent for shutdown?

I've got a few commands that I run in rc.local so they are run last in the startup sequence. I would like to know if there is a similar facility for undoing the results of those commands at shutdown, ...
13
votes
1answer
4k views

What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?

The title says it all. I'm looking for guidelines on what one should and should not include in the various startup files for zsh. I understand the order of sourcing of these files, and the ...
1
vote
0answers
105 views

Modifying resolv.conf when when bringing network interface up on system startup

My Linux box currently has a network interface that allows me to connect to a network on a different subnet. I've achieved this by modifying the routing table when the network interface is brought up. ...
8
votes
4answers
6k views

How can I run a script that starts before my login screen?

I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should ...
3
votes
3answers
2k views

How can I debug Apache, not starting upon boot

Apache is already set up as a service, since: $ sudo update-rc.d apache2 defaults System start/stop links for /etc/init.d/apache2 already exist. But Apache isn't starting. How can I start ...
2
votes
1answer
534 views

How do I start a gui framebuffer (no X) application on startup instead of console login prompt?

I have a python application that uses pygame to access the framebuffer directly without using X. I want to start this application on startup instead of showing the console login prompt. I haven't ...
1
vote
1answer
3k views

Set global environment variables at boot in Solaris 11

I am wanting to create a file in Solaris, so that I can export a few "items" whenever the machine is started up. i.e. I want to export ORACLE_HOME and ORACLE_SID and some other directories, of my ...
1
vote
0answers
520 views

xrandr config not loading properly at startup from .xprofile

I'm using xrandr to rescale the resolution on a netbook (Ubuntu 12.10). When I run the following command it works fine: xrandr --output LVDS1 --mode 1024x600 --panning 1280x720 --scale 1.25x1.2 ...
1
vote
1answer
3k views

Automatic Startup of Oracle 11gR2 on CentOS 6.3

I've setup a handful of CentOS 5.6 servers with Oracle 11gR2 and not run into this particular problem, but I have hit a wall with CentOS 6.3 and auto-starting Oracle. Not sure if this is related to ...
2
votes
0answers
200 views

Run a command before services are started

I have a Oracle Linux 6.3 system on which I would like to run a command when the machines starts up before any other services are started. The reason for this is to try and work around a bug in RHEL ...
1
vote
1answer
1k views

How to modprobe radeon and turn off card at start with systemd?

ArchLinux has completly replaced rc.conf with systemd. I used /etc/rc.local to modprobe radeon module and turn it off using vgaswitcheroo. modprobe radeon && echo OFF > ...
3
votes
1answer
496 views

Getting keyboard to work in debian 6.0 in order to unlock root partition

I just installed Debian 6.0, encrypted / and now I'm trying to boot. When GRUB comes up, I select Debian, it loads the initrd and asks for the root password, however I can't enter anything, because ...