Questions tagged [startup]

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

2
votes
2answers
1k views

When is .profile executed?

I was installing an application and had trouble with understanding why the installation guide told to add an export command to the one of startup files. I did not see when it is executed. That was the ...
0
votes
0answers
241 views

Ubuntu 18.04 slow startup apparmor=“DENIED” error

I have a fairly recent installation of Ubuntu 18.04. Lately it has been really slow on startup. Another similar question suggested looking at dmesg and there are what look like two errors to me: [ ...
2
votes
2answers
7k views

What is bootstrapping?

I am reading about bootstrapping and am confused because the term is used so much in tech (specially bootstrap itself as the CSS framework). But as far as I know bootstrapping in terms of Linux ...
5
votes
1answer
7k 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 ...
-1
votes
1answer
386 views

Startup script to decrypt home directory

I accidentally enabled /home encryption on installation. So I need to decrypt it manually from console after every system start. I do it with ecryptfs-umount-private. How can I make the decryption ...
1
vote
1answer
170 views

How to get a root shell by using syslinux start parameter

I'm trying to get a root shell using the start parameter of syslinux. The Linux system runs directly into a kiosk mode and all keyboard entry is blocked. Here is the original config: label vegas ...
1
vote
1answer
1k views

sddm slow to launch

Recently sddm has become very slow to show the login screen on Arch Linux. After I see the bootup message "Reached Graphical User Interface target" (or similar), there is a long delay of more than 10 ...
0
votes
1answer
418 views

Run script at startup as root after everything has finished

I have an IoT device with a barebones Linux distro on it. No crontab, chkconfig, or update-rc. How would I go about running a script when the device has started, after everything on the device has ...
-3
votes
1answer
57 views

How do I fix this strange screen that shows when I turn my Debian computer on?

This shows up when I startup Debian. Is this a problem, and how can I fix it?
1
vote
1answer
53 views

Using second init/systemd startup on different partition

We have the following setup: A read-only system partition from which the kernel is booted from. (Debian Jessie) A read-write partition which has additional software to be started as daemons. A simple ...
0
votes
1answer
191 views

How can I start a service after PostGres has booted?

I'm using CentOS 7. I have a nodeJS server I want to run as a service, but I would prefer the service started after my PostGres 9.6 server had booted. I tried specifying after in my service ...
1
vote
0answers
341 views

Python file not executing correctly through systemd

I have a python file to update an A-Record on my CPanel web host. It imports a module named cpanelapi which is located in the same directory as the ddns.py file. When I execute ddns.py from the ...
0
votes
1answer
180 views

25s between systemd startup and actual display

I am trying to reduce startup time of a Beaglebone (4.14.32-ti-r42 #1 SMP Thu Apr 5 23:13:09 UTC 2018 armv7l GNU/Linux) running Debian Stretch to display a local HTML page on its LCD. Every analysis ...
1
vote
4answers
37k views

How do we know what applications are installed in Linux?

I'm trying to understand the following in Linux. In windows we have the services that run or "startup". When we install an application it could be installed as a service so that it starts ...
-1
votes
1answer
54 views

How do start a background sudo task on startup (like a daemon)?

I am familiar with controlling preconfigured system daemons (as packaged by Debian) with the systemctl command. I also have a custom "service" that I start manually with: sudo process --option ...
1
vote
0answers
159 views

Where does a bash process get its default signal handlers/traps?

From https://stackoverflow.com/questions/50606753/do-getrlimit-and-setrlimit-work-by-reading-from-and-writing-to-etc-sec#comment88227414_50607042 Bash doesn't have a special handler for SIGQUIT ...
3
votes
0answers
102 views

Execute a command instantly after system is powered

I would like to execute a command instantly after system is powered. My project is realized in an embedded Linux environment (Yocto-based, with U-boot bootloader), therefore I would like to show a ...
5
votes
4answers
25k 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 ...
0
votes
1answer
2k views

How to start node.js app on machine boot by creating a boot service

My machine is Ubuntu 16.04. I want to start my node.js application when the machine boots up everytime. According to this post about autostarting services. I tried to make a service by doing the ...
5
votes
1answer
12k views

How do I figure out why my systemctl service didn't start on CentOS 7?

I'm using CentOS 7. How do I figure out why a service is failing to start? I have created this service [rails@server ~]$ sudo cat /usr/lib/systemd/system/nodejs.service [Unit] Description=nodejs ...
0
votes
1answer
1k views

How do I create a service on CentOS running as a different user than root?

I'm using CentOS 7. I want to run a nodeJS script as a service but run the service as the "rails" user. As root, I created the file /usr/lib/systemd/system/myservice.service, with the contents [...
0
votes
1answer
17 views

How can we make deployment of personal configuration or startup files easier, with existence of default ones?

I have a follow-up question after https://unix.stackexchange.com/a/435293/674 Suppose I have a personal configuration or startup file in my backup external hard drive or github repository, for ...
5
votes
3answers
31k 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 ...
0
votes
1answer
38 views

Running a custom daemon on start up

I've got a small project that's based around a raspberry pi. A central part of this project is for my program to be executed on start-up and run until shutdown, all while running stand-alone (that ...
2
votes
4answers
9k views

Check if a program/script was run at startup?

In Linux, there are many files we can modify to add a program run at start up (/etc/rc.local, bashrc, bash_profile, $HOME/.config/autostart, ...) ? Now I have a reverse question: I have a program, can ...
0
votes
1answer
100 views

BOINC launches on Ubuntu startup. How to remove program from startup bash script directly?

I have installed BOINC platform. And now it launches on OS startup. Can't find it in Startup Applications Preferences. Please help me to prevent it from start using command line. Thanks in advance.
6
votes
5answers
34k 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 ...
0
votes
0answers
267 views

Automatic startup network interface in LXC container

I have a fedora 27 LXC container inside a proxmox VE 5.1 The network config is working fine, I've added a Linux Bridge using the subnet 172.27.1.0/24 and the container is "connected" to the network. ...
1
vote
2answers
2k views

Forcing command to run on logout

I want to run a command, say touch ~/test.txt every time I'm logging out from my computer. Is that possible, and if so how should I go about doing this? I've looked at other responses but they were a ...
63
votes
1answer
5k views

Crash during startup on a recent corporate computer

After some recent updates, my computer no longer boots! Here's what I could determine: This is a very recent computer that was provided to me by corporate IT. It has a recent Intel CPU (Skylake ...
-1
votes
1answer
2k views

Run shell script at startup (Kali Linux)

This seems like a very basic thing to do, and I have even followed a few tutorials to get a simple script to be run at startup, but to no avail. Here is what my script, which is in the root directory,...
0
votes
1answer
5k views

How to make a simple script run at login everytime

I'm extremely new to Linux style computing. Please keep that in mind. I figured out how to write a script for the calendar to pop up in the terminal. !/bin/bash Shell Scrip to display current date, ...
18
votes
2answers
8k views

How is /etc/fstab accessed before root is mounted?

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then ...
0
votes
1answer
50 views

What's wrong with my cronjob?

I want to run a script on startup that establishes a GRE tunnel. The script works fine if I just run /root/tunnel.sh after rebooting, it runs and establishes the tunnel. Below are the contents of my ...
2
votes
0answers
280 views

troubleshooting AMD-Vi IO_PAGE_FAULT

I have been trying to run Linux on a PC with an AMD CPU. The installer for Ubuntu 16.04 loads fine but once the OS is loaded on the hard drive upon reboot I get a flood of console errors reading: ...
6
votes
6answers
41k 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 ...
1
vote
2answers
61 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?
19
votes
2answers
44k views

systemd: automate modprobe command at boot time

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?
1
vote
1answer
739 views

I don't have upstart installed on 16.04 but /etc/init has a bunch of .conf scripts in it. Why?

I'm trying to get a command to run on boot and wrote an upstart .conf file and put it into /etc/init. It's a brand new EC2 instance and theres was already bunch of .conf files there. My file wasn't ...
1
vote
1answer
461 views

Managing startup applications in debian buster 10 (mate)

I saw How to manage startup applications in Debian 9? At that time, gnome-tweak-tool was the go-to-tool however, since a few days, that app. is not there anymore. I am running on Debian buster. ...
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. ...
1
vote
7answers
5k views

What's the cleanest way to schedule autoexec.bat like command in Linux?

I want to create a small script for my Linux system that would do some simple things on PC boot. The script is most likely going to be Python, but maybe I'll resort to C or shell. The problem is that ...
2
votes
1answer
3k views

Make grub boot on default without waiting

I would like grub(2) to boot on my main os without waiting. Every single time I start my computer, I either have to press <Enter> or wait for ten second. Is it possible for grub to boot directly ...
1
vote
1answer
21 views

Suspend boot process

I am looking for something that suspends the boot process (before certain services are started). It would prompt the console for user input after which I could use that input and continue booting the ...
2
votes
1answer
1k views

Linux script not running on start up

Hello and thank you for being so helpful. I am trying to run a script at startup that reduces the power limits of my gpus. The shell command is in init.d and I have tried using symlink to rc1 and rc3. ...
1
vote
2answers
260 views

Can I start ntp.service after boot?

I've had issues with ntp drastically increasing the startup time, and I am not the only one, see for example here. Since it is responsible for adjusting my system time, I see no important reason for ...
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:...
1
vote
1answer
331 views

How to keep login screen from going blank with minimal RHEL install?

I am running Red Hat Enterprise Linux 7.4. I have done a minimal install so that I don't have X11, xorg, xset or anything x related installed. I am trying to keep the monitor from going blank. When ...
4
votes
1answer
603 views

Solaris 10 - Is it possible to reboot a system from a startup script?

I have a Solaris 10 test guest logical domain (LDom). I plan to have the network on this be reconfigured before rebooting using a startup script in /etc/rc0.d. At the moment, when the system boots, ...
0
votes
2answers
1k views

how to run a custom command start up application as root

I would like to make it so a terminal command runs every time I start up my computer, but the command I want to run requires root permissions. I enter in the command in the start up applications part ...