The tag has no wiki summary.

learn more… | top users | synonyms

8
votes
1answer
3k views

Explanation of chkconfig Levels

What do the levels in chkconfig mean? e.g. chkconfig --levels 235 httpd on
7
votes
4answers
7k views

Any way to make service do not autostart in Ubuntu/Debian, but leave K00 scripts in place?

I need to have only stop scripts in rcN.d (runlevels 0,1,6) for apache2. So that I always start it by myself, but when reboot occurs server will shut down apache2 properly. And when I change runlevel ...
6
votes
2answers
11k views

How to change default runlevel of Ubuntu (lucid)?

I have Ubuntu lucid on my home computer. Today I was experimenting with runlevels and I couldn't figure out how to change the default run level of Ubuntu. I can do that using /etc/inittab on Debian ...
5
votes
1answer
3k views

Upstart: stop on runlevel [016] vs stop on starting rc RUNLEVEL=[016]

So, I'm working on an upstart init script for mysql. Should be trivial, right? My stop stanza looks like: kill timeout 30 stop on runlevel [016] I shutdown now -r, and mysql yells about my MyISAM ...
4
votes
2answers
11k views

How to run script on first boot?

I need to run some bash script only once on first boot (after OS installation) of my CentOS machine This script should run before network service start (because this script will change network ...
3
votes
1answer
212 views

How to remove MySQL on boot

denis@australia:~$ cat /etc/issue Ubuntu 12.04.1 LTS \n \l denis@australia:~$ chkconfig --list mysql mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off But mysql runs on the ...
3
votes
1answer
1k views

Cannot get Nginx to start on boot with Ubuntu

I'm running Ubuntu 12.04 and Nginx 1.2.1 which I compiled from source. I tried the below commands to get nginx to start on boot: $ sudo update-rc.d nginx default $ sudo update-rc.d nginx enable 2345 ...
3
votes
3answers
1k views

What is Runlevel 'S' on Debian/Ubuntu for

According to Wikipedia, 'S' is supposed to be a standard runlevel: "Single-User Mode". But if I'm not mistaken, the Single-User mode on Debian is Runlevel 1. One Debian article I found claims, that ...
3
votes
2answers
266 views

Execution order of runlevel scripts

My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example K05foo -> ... K10bar -> ... K80baz -> ... S10somemore -> ... S90halt -> ... Is it correct, that the ...
2
votes
3answers
151 views

Can I use Bash interpreter in service/daemon scripts?

I'm writing a Debian/Ubuntu service that should start on at runlevel 2-5. Most of the existing services I came accross are written using /bin/sh (Shell) interpreter while /bin/bash (Bash) offer lot ...
2
votes
1answer
179 views

How to add a service to the S runlevel in Debian?

I have the following script (what it does exactly is not important): #!/bin/sh -e ### BEGIN INIT INFO # Provides: watchdog_early # Required-Start: udev # Required-Stop: # ...
2
votes
1answer
680 views

how to define service runlevel order position?

I setup bind-dlz and need mysql start prior NAMED when system starts here is what I have [root@semenov]# ./test.sh mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off named ...
2
votes
1answer
611 views

Rebuilding /etc/rc?.d/ links

A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list). The system seems to boot and ...
2
votes
0answers
25 views

Centos 6.6 ignores inittab – always boots to runlevel 3

Well, like the title says, I have inittab set to id:5:initdefault but it always boots to runlevel 3 (as confirmed by "runlevel" and "who -r") Typing 'init 5' brings the GUI up. Also, appending '5' ...
1
vote
1answer
136 views

ubuntu 11 runlevel

probably a simple question, but i think im wording things wrongly to the googles: i have a ubuntu 11 server that 90% of the time runs headless, and is only accessed over ssh. i use it as a ...
1
vote
1answer
1k views

Delay init from starting a service for a period of time?

I am trying to get a rudimentary NFS server up and running. Right now the server is configured as an NFS server due to a workaround for a vendor issue not supporting direct attached clustered storage, ...
0
votes
1answer
83 views

Program Files(x86) not being interpretted right on Win7x64 when not running as local admin

Regards, I'm having a peculiar issue with a 32bit software program that is being migrated to a x64 environment (Windows XP SP3 towards Windows 7 X64. The application is question is a electronic ...
0
votes
1answer
3k views

CentOS Server won't reboot when issuing reboot command

CentOS 5.x Hi all, For some reason, my CentOS server didn't want to reboot after I issued the reboot and shutdown -r now commands. All I saw in the /var/log/messages logs were: Aug 25 ...
0
votes
1answer
1k views

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 How do I get apache to startup at bootime on Linux, namely: Creating the file ...
0
votes
2answers
2k views

Rescue Mode For EC2, Process Hangs On Startup

I have an ec2 server that was running for several months without any problems, but I recently had to reboot due to an unknown reason. Now, it appears that it is having trouble starting up, possible ...
0
votes
0answers
18 views

what is the correct runlevel for “Stop” in ec2?

I am trying to make a script to gracefully shutdown some application servers, I put the scripts in /etc/rc0.d but when I stop the ec2 instance on amazon, it won't call my script. what is the correct ...
0
votes
0answers
12 views

Define default runlevels for 2 init.d daemons with dependencies (Sysvinit Debian Wheezy)

I have two daemons daemonA and daemonB. B is dependant from A, that means that A must start BEFORE B and A must stop AFTER B. I have successfully made these daemons run at boot time by setting ...
0
votes
0answers
20 views

Debian Squeeze booted into runlevel 6

I've just found a very strange issue. One of my Debian Squeeze systems has booted into runlevel 6. I'm not sure how. None of the services configured to run at the lower levels started up. This is ...
0
votes
0answers
142 views

Linux: immediate logoff upon login

I have a CentOS 6 installation (on a USB disk) that I use for repairs etc. I recently moved the installation to a new disk, and now something strange is happening. Immediately after I logon I am ...
-1
votes
1answer
24 views

Where are smbd system links in UBUNTU 12.04?

After installing Samba on UBUNTU 12.04, I checked the system link run level directories and were not able to find smbd links. This is interesting because smbd is started automatically on reboot. Here ...