The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
1answer
41 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 ...
3
votes
4answers
10k 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
113 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
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 ...
0
votes
0answers
372 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, ...
21
votes
2answers
9k 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
52 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
318 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
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 ...
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
48k 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
921 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
924 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 ...
1
vote
1answer
31 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
2k 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
320 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
370 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
635 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
2k 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 ...
48
votes
3answers
122k views

Running a script during booting/startup; init.d vs cron @reboot

I am currently trying to understand the difference between init.d and cron @reboot for running a script at startup/booting of the system. The use of @reboot (this method was mentioned in this forum ...
3
votes
2answers
216 views

Does a boot loader unmount the ramdisk BEFORE mounting the root file system on the hard drive?

In a recent online course, a RHEL/CentOS instructor mentioned the following: The boot loader then executes the kernel. During the kernel stage, the kernel loads a ramdisk into memory. This ...
2
votes
0answers
161 views

Very long ubuntu startup time

I've just installed Ubuntu (on an SSD) and startup takes over two minutes. I've checked "dmesg" and found a clear 90 seconds process that probably shouldn't be there. [ 13.831788] audit: type=1400 ...
3
votes
4answers
6k views

Fedora 27 not running rc.local when booting

I was trying to get the Shadowsocks server running automatically after booting, and I used the rc.local file, but it was not working. rc.localis now: /usr/local/bin/ssserver -c /etc/shadowsocks.json ...
0
votes
1answer
1k views

How to start a console program at startup(inside ../openbox/autostart)

I have a console program: #include <iostream> #include <stdio.h> using namespace std; int main() { printf("please num1:"); int a; cin>>a; printf("please num2:"); int b; cin>>...
23
votes
7answers
30k views

Start tomcat at startup with administrative privileges

I need one process run before log in to system. How to run it like services? how do I make services in Linux? In Ubuntu and Fedora? The service is customized tomcat
3
votes
1answer
870 views

Why doesn't this .desktop file run on startup?

I'm trying to get the sensors command to run in a console on startup on my Linux Mint 18.2 setup. I've put the following sensors.desktop file into my login user's .config/autostart directory: [...
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 ...
1
vote
1answer
511 views

Where should I put my C++ program to run at startup? [closed]

I am trying my Ubuntu-Server launches my program after boot, so I put my program's executable file address on /etc/rc.local followed by space+& like this: /home/m/myapp & But it didn't work! ...
3
votes
3answers
9k views

systemd oneshot Requirement to execute only once

I have multiple systemd services that require a generated EnvironmentFile. I have a shell script which generates this Environment file, but since I need that environment file before any Exec... ...
1
vote
1answer
796 views

Grub set default startup to a Ubuntu 16.04 installed at /dev/mapper

I have two Ubuntu systems installed, one 14.04 and one 16.04. From the Grub menu I can see that: *Ubuntu Memory test (memtest86+) Ubuntu 14.04.4 LTS (on /dev/sda1) Ubuntu 16.04.2 LTS (on /dev/mapper/...
0
votes
1answer
4k views

Automate Connection to VPN on startup

I'm hoping to automate the startup of a VPN connection on startup of a CentOS 6.5 box. I have a Fortinet VPN client that I run on the command line as follows: [centhost]$./forticlientsslvpn_cli --...
0
votes
1answer
297 views

Why does /etc/profile check PS1 rather than the -i flag in $-

I know of two ways to test whether a shell is interactive, [[ $- == *i* ]] && echo "-i option flag indicates interactive" [ -n "$PS1" ] && echo "prompt is set" I've read that ...
2
votes
0answers
107 views

~/.bash_profile not executed upon login, but ~/.profile is [duplicate]

I'm running Ubuntu, with Gnome3 as my desktop manager. While debugging some initialization issues (the usual confusion over bash_profile, bashrc, etc.), I found that given the following files, # ~/....
1
vote
0answers
2k views

Arch linuxBoot hangs on Started Update man-db cache

After a full upgrade of the system with pacman -Syu The kernel has been updated, but when I shut down the laptop and open it again it hangs on this message: [ OK ] Reached target Graphical ...
0
votes
2answers
51 views

a ctl file preventing machine from starting up

This is a rather ridiculous predicament I find myself in. At some point in the past I've installed a piece of software (ejabberd, if you're curious, but I don't think it really matters which), that is ...
2
votes
2answers
270 views

Can't get out of foreground mode in STunnel

I was trying to debug an STunnel installation on my Raspberry Pi (using Raspbian) and so I set the foreground mode to yes (which is something suggested in the official documentation). Unfortunately, ...
2
votes
1answer
3k views

Can I force Linux to boot its initializations parallel? [closed]

I was wondering if I could manage to initialize drivers, services etc. (all these jobs what Linux does during startup) in parallel instead of sequentially. I want to aggressively lower the boot time. ...
1
vote
2answers
6k views

Auto run the programs When the system turns on(Debian)

I've got a beaglebone black that has Debian 9.1. we wrote a c++ program for its GPIOs and We want this program to always run when the system turns on. how can we do that?
2
votes
1answer
478 views

System freeze on “setting up alsa”

I use Debian wheezy and I boot the computer and get stuck in the line: [....] setting up alsa .... It freezes, it only responds to "REUSIB" (Emergency Reboot With Magic SysRq), but it is unusable as ...
4
votes
1answer
3k views

Slow boot on Ubuntu 16.04 LTS

After uprading to Ubuntu 16.04 LTS I noticed that it boots noticeably slower, compare with 14.04. Is it possible solve this issue without extensive reconfiguration of various services and system ...
3
votes
1answer
364 views

Linux mint 13: Error starting MATE

My Linux Mint installation seemed to work fine an hour ago, then I switched into Windows 7 which is installed on the same machine. When I restarted back into Mint, I got the following errors and can't ...
1
vote
1answer
4k views

Systemd run script after GUI is ready?

I'm running raspbian on pi. I've created a systemd script which runs a node.js app on startup. Script: #!/usr/bin/env bash cd /home/pi/pop_machine && /usr/bin/npm start Systemd Service: [...
1
vote
2answers
2k views

How do I automatically execute `netctl start tq84-wifi` on bootup?

I have configured a wifi connection in /etc/netctl/tq84-wifi in a Arch Linux installation and am able to manually start it with sudo netctl start tq84-wifi. Now I'd like to have my installation start ...