Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [startup]

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

7
votes
1answer
2k views

the --now switch of `systemctl`

As stated in the man page, systemctl --now enable servicename should enable and start the service. But it never works for me, under many different distributions. While the output of: systemctl is-...
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
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 ...
5
votes
1answer
5k 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, ...
4
votes
3answers
3k views

No /proc in a Busybox-based embedded Linux distribution

I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows: /lib /* contains ...
3
votes
2answers
189 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 ...
3
votes
1answer
7k views

How to schedule shutdown every day?

We have a server that is used for Linux thin clients in a class. The server is started when required and I want to schedule it to power off at 22:00 every day to avoid power wasting. I thought of ...
3
votes
2answers
3k views

Systemd unit activate vs enable

Can someone clarify for me difference between "enable" and "activate" for systemd unit. There are told, if unit has [Install] section than enable should be called, otherwise just activate is enough. ...
2
votes
1answer
5k views

Execute a script as root at boot on Fedora 15/16

I try to run a script (tpfand) at startup, and it asked to be root to execute it. This is a script to control the fans on Thinkpad computers. Despite several attempts, I could not get ...
2
votes
1answer
855 views

Check `fsck` automatically

I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS. So what ...
2
votes
1answer
394 views

How to permanently disable root-password prompt for recovery mode, RHEL6

In the rare cases that a RHEL or CentOS 6 system is prevented from booting by (for instance) an improper shutdown, or a forced fsck-check failure on boot, the console will prompt the user for a root ...
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 ...
0
votes
1answer
492 views

Serivce Restarts every 90 seconds

We have written a service script to start an executable on system start up. The service script restarts every 90 seconds on a consistent basis. If we disable the service and run the executable, it ...
4
votes
2answers
3k views

Having a bash script run at startup and display the results when I log in

I am running Ubuntu 11.04 and I want to be able to run a command like top so when I login it is running in a window. I been trying many things for a while now and can't seem to get it to work I ...
3
votes
1answer
1k views

how to write a startup dependency on Internet availability?

Some of the services on my Raspberry Pi (~ Debian) depend on the availability of Internet (especially ntpd, for cryptic reasons). Specifically, the availability of a network device or a link being up ...
3
votes
1answer
770 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: [...
3
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. ...
3
votes
3answers
20k views

How can I run a program as a root user when my Ubuntu 15.04 machine starts up?

On Ubuntu 15.04 I have this file: /usr/local/bin/myscript (it's a script I made). If I run this command under my account, it will do what I need it to do as a root user: sudo /usr/local/bin/myscript ...
2
votes
1answer
1k views

Commands in init script refuse to run or actually do anything

Edit -- So it turns out that this line is the culprit . /lib/lsb/init-functions If I comment out that line then the commands are actually able to run. Why would this be? I'm able to source this file ...
2
votes
2answers
5k 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
685 views

Xfce4 mysteriously starts file browser upon login

I'm using Arch Linux and currently installed Xfce4, which after I log in (using LigthDM) opens an instance of the Nemo file browser. This happens regardless what I set as the default file browser (I ...
2
votes
1answer
7k views

Can Start Service With init.d script, however doing service <SERVICE_NAME> start does not work

I am running CentOS 6 and I am trying to get my Oracle database to run at startup. I have been following these steps: http://www.oracle-base.com/articles/linux/automating-database-startup-and-...
2
votes
1answer
446 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! ...
1
vote
1answer
877 views

FreeBSD - best way to set console vidcontrol mode from boot without disrupting scrollback buffer info

My system uses vidcontrol to change video mode, and I'd like to set a tighter video mode from boottime, for all console windows/devices. man vidcontrol says to do this by editing it into rc or rc....
1
vote
1answer
56 views

Start SWT application after system start

I am trying to start a java SWT application after the system has booted and the user has logged in on a debian based distro (RaspbianOS on a Raspberry Pi). Therefore I have added the line sh <path&...
1
vote
2answers
5k views

Debian: How to resolve Xserver failure

I keep finding similar posts online but I can't really use the solutions in my case. in my /etc/bash.bashrc file, I have the following code placed at the very bottom: if [ -e /tmp/.X0-lock ]; then ...
0
votes
1answer
870 views

Curl fails to download a file during start up

I am adding startup script in Ubuntu with update-rc.d. My script says : #!/bin/bash nohup curl -C - -o ~/Downloads/linuxmint-17-xfce-dvd-64bit.iso.part 'http://mirror.umd.edu/linuxmint/images/...
0
votes
1answer
420 views

Add status info to systemd's status output

I'm writing a systemd script for a backup software client called Retrospect. This software doesn't follow any kind of typical linux ways of doing things. Getting a status from the program means ...
0
votes
1answer
4k views

mounting by default at startup with /etc/fstab doesn't work

I'm trying since a few hours to mount a partition (md0) automatically with the server start. The Content of my /etc/fstab: # <file system> <mount point> <type> <options> ...
0
votes
1answer
1k views

Is there a specific SSH boot log?

My sshd won't start at bootup. I have to type it in manually (sudo service ssh start). I've posted a question on how to start ssh at bootup (How to start SSH daemon on boot on Linux Mint Debian v2), ...
0
votes
1answer
918 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>>...
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
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 ...
0
votes
1answer
1k views

ubuntu 16.04 a chmod command not excuted in rc.local automatically

I'm trying to run a chmod command in rc.local so that it gets executed at startup. The command enables the I2C device to be accessed. However, I need to manually run rc.local in order for it to work. ...
0
votes
2answers
4k 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?
-1
votes
1answer
374 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 ...