Questions tagged [runlevel]

A run level is a state of the init process defining which system services are operating.

A run level is a state of the init process defining which system services are operating.

http://www.tldp.org/LDP/sag/html/run-levels-intro.html

52 questions
10
votes
1 answer

Missing LSB Information (Start-up Shell Script)

I created an auto start shell script. Then I have given permission to be executable. Add a link to /etc/inin.d/ : sudo ln -snf /opt/myapp/apimanager /etc/init.d/apimanager update-rc.d command to set the run levels sudo update-rc.d apimanager…
Techie
  • 44,706
  • 42
  • 157
  • 243
4
votes
2 answers

Basic Docker container reports runlevel unknown

When I run a basic Docker container (from within Google Cloud Shell) like so docker pull debian docker run -i -t debian:wheezy /bin/bash and then type runlevel at the running container's shell prompt, the run level is unknown. Am I supposed to…
Drux
  • 11,992
  • 13
  • 66
  • 116
4
votes
3 answers

How to run a Shell Script before shutdown on CentOS

I want to send an email when the system is going to shutdown to an email ID. I have CentOS 6.4. Below is my Script. cat /ect/init.d/sendshtmail #!/bin/bash EMAIL="example@example.com" SHUTDOWNSUBJECT="["`hostname`"] - System…
linuxnewbee
  • 998
  • 2
  • 10
  • 23
2
votes
1 answer

could not determine current runlevel - docker installation

Installing docker-ce as part of Dockerfile, with below command: ARG DOCKER_VERSION=18.06.1~ce~3-0~debian RUN apt-get update && \ apt-get -y install apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ …
overexchange
  • 15,768
  • 30
  • 152
  • 347
2
votes
1 answer

puppet service resource, enable, init script order

In puppet, if you enable a service like this: service { 'myservice': ensure => running, enable => true, subscribe => File['/etc/init.d/myservice']; } file { '/etc/init.d/myservice': source =>…
Edward Ned Harvey
  • 6,525
  • 5
  • 36
  • 45
2
votes
0 answers

Shutdown scripts to run upon AWS termination

I am trying to get some scripts to run upon an aws termination action. I have created /etc/init.d/Script.sh and linked symbolically to /etc/rc01.d/K01Script.sh However terminating through aws console did not produce the output I was looking for. (It…
brenguy
  • 21
  • 2
2
votes
1 answer

Apache listed in runlevels, not starting at boot (OpenSuse 12.3)

I want my compiled apache2 server to run when my OpenSuse 12.3 server boots. I've followed the procedure listed in https://serverfault.com/questions/16839/how-do-i-get-apache-to-startup-at-bootime-on-linux, namely: Creating the file…
jml
  • 66
  • 1
  • 7
2
votes
1 answer

How to start a gtk application after booting up without logging in?

I have got a gtk application. I want it to start automatically when I boot up the system, such that instead of getting usual login screen, my application greets the user. My application is a sort of cash dispensing application. So user should not…
Andrew-Dufresne
  • 5,464
  • 7
  • 46
  • 68
2
votes
2 answers

Linux Runlevel 1: start programm

I'm trying to automatically start a process when I enter runlevel 1 by init 1. It's a watchdog which has to send a life signal all the time therefore in runlevel 1 too! But when runlevel 1 is entered each process is killed and the system switches to…
arminb
  • 2,036
  • 3
  • 24
  • 43
2
votes
1 answer

busybox start init script after bootup

i am running an embedded linux device with busybox. after boot i want to start the ppp connection and do other things. i want to run it when everything else has finished and the system is up. my inittab looks like: ::sysinit:/bin/sh…
user1320852
  • 97
  • 1
  • 2
  • 8
1
vote
1 answer

linux: determining if a running init.d script is executed as part of the system startup sequence

I am writing a init.d script that should run commands with certain options if it were being executed at system startup. The same script should run commands with other options if the user was manually executing the script. For example, in a…
Sameer Naik
  • 45
  • 1
  • 7
1
vote
0 answers

How to make a python script display image before shutdown with systemd service?

I have the below service file in the location /lib/systemd/system/ of Ubuntu 16.04 desktop with lightdm display manager to display an image with python pillow library. [Unit] Description=Python script to show image on starting…
Yugendran
  • 172
  • 2
  • 9
1
vote
1 answer

runlevels init.d and rc.d

I am not sure to ask it here or at serverfault, but it has to do with my script and creating an installer... I have made a service (linux perl script) and all the configuration files and etc etc. I would like to make an installer for it so it…
renevdkooi
  • 1,515
  • 1
  • 17
  • 42
1
vote
2 answers

why my script in /etc/init.d with K symbolic link in rc0.d and rc6.d and S symbolic link in rc5.d is not working on shutdown?

I'm writing a script which I want to run before every shutdown of my ubuntu system. I have placed my script named myscript inside /etc/init.d folder and then created symbolic links in rc0.d and rc6.d as K01myscript and S01myscript in rc5.d. But the…
Abhishek Mishra
  • 111
  • 1
  • 10
1
vote
1 answer

How to make mongodb service not start automatically in ubuntu 15.10 desktop?

I installed mongodb by Ubuntu Software Center in ubuntu 15.10 desktop. Service Mongodb starts automatically every time when I boot my laptop. Because it is not in the server edition os, so I want to start or stop the service manually, like sudo…
hardPass
  • 19,033
  • 19
  • 40
  • 42
1
2 3 4