Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [startup]

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

Filter by
Sorted by
Tagged with
7
votes
1answer
7k views

What's the difference of `/etc/modules-load.d` and `/etc/modules`?

I red the introduction of them and found that, they both deal with module loading during boot time. So, what's the difference of these two different configuation ways?
7
votes
2answers
13k views

How to change the default TTY after boot?

Normally when system starts you have all output printed on the TTY1, and that's ok, but I start X-server via startx and achieve this by the following lines in the ~/.profile file : if [[ $(tty) = /...
7
votes
3answers
2k views

What is causing a pause during the system device probe?

I am running FreeBSD 10.0-RELEASE. During the boot device probe there is a two-times 30 second pause. The output relevant to this is # dmesg ... (aprobe0:ata0:0:1:0): ATAPI_IDENTIFY. ACB: a1 00 00 ...
6
votes
2answers
3k views

What happens if I set default system runlevel to 0 or 6?

What I understand from runlevels is that in each level some programs have permission to be executed and some don't. runlevel 3 boots system into CLI and runlevel 5 starts the default GUI. But I don't ...
6
votes
6answers
42k views

Run a sh file on machine boot up

I am quite new to Linux and want to know what to be done to launch a .sh file on machine startup. Basically, I have a server machine with Linux OS on it and want to run some jboss application when ...
6
votes
3answers
36k views

How to make a service that starts on boot in CentOS?

When I boot my CentOS box, the httpd service starts automatically. How do I make a custom service that does the same thing? I have a program I use for mining, and I don't want to need to run ./miner ...
6
votes
3answers
2k views

Templates for startup script?

I need to write a couple of Linux (Debian) startup scripts. Are there any accurate templates available?
6
votes
4answers
2k views

Mount filesystems after boot to avoid fsck delay for sshd

I'm trying to optimise the overall downtime and improve availability in case of system failure. I'm specifically concerned about the reboot (e.g. after a kernel panic) taking so long that I don't ...
6
votes
3answers
15k views

How can I enable ufw automatically on boot?

sudo ufw enable Firewall is active and enabled on system startup sudo ufw status Status: active But after I restart the system and run sudo ufw status, I get the message: Status: inactive How can ...
6
votes
1answer
6k views

Cannot boot because missing external disk

Using Fedora 24, I had configured in /etc/fstab an external usb drive: UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults 0 0 When I unplugged the usb disk and reboot, ...
6
votes
1answer
10k views

Disable atd (and other unnecessary startup processes) in Ubuntu?

I just spun up a new 12.04 server and have been having a bit of trouble getting the atd daemon to stop auto-launching. There's been a bit of changing around on the management of startup processes, ...
6
votes
1answer
315 views

Is there a standard way to have a program start when a user logs in on Linux?

Is there a standard way to make a program start when a user logs in? On Ubuntu, for example, you can place a .desktop file in ~/.config/autostart and the application will launch on startup. Does ...
6
votes
5answers
38k views

syslog-ng service not starting with systemd but command works fine

I have a freshly installed version on CentOS 7 once which I have installed syslog-ng from the EPEL repositories. ~: yum list | grep syslog syslog-ng.x86_64 3.5.6-1.el7 ...
6
votes
3answers
6k views

Prevent Debian from auto-assembling RAID at boot

I set up a Debian wheezy (7.6), installed openmediavault, and created a software raid 5 with that. It is listed at /dev/md127. Now I want to move that to a virtual XEN VM. To do so, I have to stop ...
6
votes
2answers
2k views

Is there a way to wait for boot to complete [closed]

With systemd one can query if the boot has completed by the command systemctl is-system-running which returns error code if boot hasn't completed. If one want to wait for the boot to complete one ...
6
votes
2answers
741 views

When is the appropriate time to start Redshift using upstart?

I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users. Running Redshift as a service does not seem fully ...
6
votes
3answers
5k views

Do I *need* `exit 0` at the end of `rc.local`?

What is the purpose of the exit code in rc.local? I seem to execute just fine without it. The header shows: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure ...
6
votes
1answer
9k views

Can systemctl list all enabled services, including legacy services?

This question asks: "How to list all enabled services from systemctl?" Answers on that page include: systemctl list-unit-files | grep enabled systemctl list-unit-files --state=enabled At least as ...
6
votes
1answer
1k views

Run only the Linux kernel and user programs

is it possible to run only a Linux kernel on a system which will load my programs instead of an operating system? I want to work with a Raspberry Pi with a Linux kernel. I am trying to create a ...
6
votes
3answers
5k views

How do I start a screen session using an upstart job with a non privileged user?

I am trying to create an Upstart job that starts a new screen session on boot, in which I would like to automatically start a java executable. Here is the .conf file I am currently trying to get to ...
6
votes
1answer
5k views

Automatically run rfkill unblock on startup

I'm running Elementary OS on an old(er) HP Pavilion dm1. Unfortunately, on startup my wireless is hard disabled, and I need to run sudo rfkill unblock all to get it up and running. Works fine once I ...
5
votes
3answers
26k views

Arch Linux run script a minute after boot

I have set up a bridge between eth0 and wlan0 with netctl. It works fine if I tell it to configure eth0 and wlan0 at startup and then for me to manually start the bridge after it boots. If I tell the ...
5
votes
3answers
42k 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 ...
5
votes
8answers
6k views

How to know during system start when system time becomes correct from NTP

I have a Raspberry Pi running Raspbian (Debian derivative) that is recording real-time temperatures. As part of this, I need a clock that is accurate to within a few seconds. In normal operation when ...
5
votes
1answer
9k views

Service in Arch not starting on PC boot

I am running Arch Linux. I have a service on /etc/systemd/system/ with the following description [Unit] After=network.target [Service] Type=simple ExecStart=(...)service.py ExecReload=(...)service....
5
votes
5answers
338 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 config?...
5
votes
4answers
10k views

Run Python script on startup

Running on Ubuntu Karmic. I need to execute the following (updated) script at boot time #!/bin/sh # /etc/init.d/scripts # Description: Starts Python scripts # ————————————————– # ### BEGIN INIT INFO #...
5
votes
1answer
85 views

Method to determine what `Type` of systemd service to use for any given application

I think I have a relatively good handle on the different Type of services which systemd can be configured for (e.g. simple, oneshot, etc). The docs provide a pretty reasonable overview and ...
5
votes
2answers
8k views

How to start VNC server on start-up in Ubuntu 10.04

I've been struggling with this long enough to ask yet another startup script question. I've got a startup script that is relatively simple, ie: ### BEGIN INIT INFO # Provides: startVNC # ...
5
votes
1answer
5k views

rc.local - not all commands are executed

I have following lines in my rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # ...
5
votes
2answers
12k views

How can I start program on boot in Ubuntu 14.04?

Is the root crontab the only way? I'm starting up a MC server and don't want it to need me to manually restart it each time the server reboots for whatever reason. I don't want any login required ...
5
votes
2answers
4k views

Can't run application that depends on X as a systemd service

I am using Manjaro 17 with i3wm (if any relevance). I want to run a single command on start-up to fix the my touchpad tap click setting. I wrote the script that enables the option in /usr/bin/ and ...
5
votes
2answers
2k views

List of script( location)s that get run automatically, and when?

Does anybody know (of a resource listing) what scripts are run automatically, and when, from the moment I startup the computer until it's shutdown again. I know several places where I can add scripts ...
5
votes
2answers
11k views

Running program on startup (Fedora 22/ 2015)

I tried really hard to avoid posting a new question for something so basic and already answered in a hundred places, but after spending two hours on this and trying every solution out there I'm ...
5
votes
3answers
13k views

Starting Qt Application On Startup for Embedded Linux

I'm trying to get a Qt application to launch 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 daemon running in ...
5
votes
2answers
4k views

How can I make Debian run m python script at startup?

I have this script in my home folder (pi): server.py. How could I make Debian run this script at startup so I don't need to log in and run it manually?
5
votes
2answers
1k views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my Ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
5
votes
1answer
8k views

Startup services on Debian 9

I tried to remove some services from startup using various software like: bum sysv-rc-conf rcconf But... some services are still executed, like MySQL, OpenVPN, MongoDB etc. I wonder if I am missing ...
5
votes
1answer
6k views

Set environment variable (TZ) for all startup scripts and inittab

I'm working on an embedded Linux system and looking for a way to set the time zone for all processes. The question is: Is there any possibility to set the TZ environment variable at boot time (init ...
5
votes
2answers
9k views

How can I start Apache on Arch Linux w/systemd using passphrase protected SSL keys?

I'm relatively new to using Arch Linux and think I must be missing the obvious way to do this correctly, but –short of starting the daemon on my own– I can't figure out how to get passphrase protected ...
5
votes
2answers
19k 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 re-...
5
votes
3answers
2k views

What would likely cause directories in /var/run to disappear / not be created on startup? (CentOS 7.3)

Ran into an issue today where Apache would not load because /var/run/httpd was missing. After much hunting to find that cause of the error I was getting ([Tue Jul 25 00:06:31.574386 2017] [auth_digest:...
5
votes
1answer
13k views

Is there a way of getting logs for startup processes in /etc/init.d?

Is there a way of getting logs for startup processes in /etc/init.d? I am running Raspbian (Debian Wheezy). dmesg shows boot log, but does not go far enough. Some time ago I added a script to start ...
5
votes
1answer
3k views

rc.local with read will not echo key strokes

I'm using CentOS 6.4 and have a small problem with using read in /etc/rc.local file. It will allow keyboard entry but does not echo any of the key strokes during input. This is something that worked ...
5
votes
1answer
191 views

Send an email right before the password prompt of ecryptfs during bootup

I'm setting up a home server which has full disk encryption enabled. In order to recover from a power failure the machine automatically reboots. I'm also able to unlock the disk remotely using ssh ...
5
votes
1answer
778 views

Giving a custom script root permissions

I have a backup drive that is Truecrypt Encrypted. I'd like to automnt this drive so I can automate backups when in the office. I am using Linux Mint 12 x64bit I wrote a script that runs successfully ...
4
votes
2answers
13k views

Debian 8 - Update Iptables on boot

I am in the process of porting my "configure openvpn server" from ubuntu 14 to debian 8. So far it works well except for this section: # Set up iptables to forward packets for vpn and do this upon ...
4
votes
2answers
3k views

How can I start a file-processing daemon? [closed]

How can I run a script-based tool which will process files continuously downloaded to given directory as they arrive? I'd like to minimize delay (~1 second is OK), script can have own infinite loop. ...
4
votes
2answers
19k views

Make daemon start up with Linux

I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up. I have tried to modify /etc/init.d/skeleton to add a script into the init.d directory as follows ...
4
votes
3answers
14k views

Run a GUI program at startup

I am using Ubuntu 14.04. I wrote a small script named trial. The contents of the script are as follows: #!/bin/sh SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin sh -c firefox I copied the ...