Chkconfig alternative for Ubuntu Server?

I am trying to install chkconfig, and i am getting the error.

error msg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package chkconfig is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package chkconfig has no installation candidate

i am pretty sure i am using the proper command
sudo apt-get install chkconfig
sudo aptitude install chkconfig

Has the name changed in the last two weeks I haven't used it? Also I am running...

0 0


chkconfig - updates and queries runlevel information for system services


chkconfig [--list] [--type type][name]
chkconfig --add name
chkconfig --del name
chkconfig --override name
chkconfig [--level levels] [--type type] name
chkconfig [--level levels] [--type type] name


chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories.

This implementation of chkconfig was inspired by the chkconfig command present in the IRIX operating system. Rather than maintaining configuration information outside of the /etc/rc[0-6].d hierarchy, however, this version directly manages the symlinks in /etc/rc[0-6].d. This leaves all of the configuration information regarding what services init starts in a single location.

chkconfig has...

0 0
"chkconfig" like command in Ubuntu

location: - date: February 6, 2009
I have "sendmail" server running on my Ubuntu 8.10. The problem is that it takes few minutes for sendmail to start when the system is booting up. How could I avoid it's start during the booting process? In Redhat/Fedora there is a command called "chkconfig", using which we can do: "chkconfing sendmail off" I wanted to know same kind of application/command/utility on Ubuntu.

chkconfig on Ubuntu

location: - date: September 30, 2013
I have created a startup service for tomcat using chkconfig (runlevel 2345) , the service is starting ok but is not able to access fonts. Once i kill the service and start it manually then it is able to access the fonts correctly. I also tried adding this service in cron tab instead of chkconfig, the service works Ok [it is able to access fonts] if started via cron tab. thanks for the help Sidd

ubuntu 8X and...
0 0

Chkconfig Command


The chkconfig command is a popular package that can be installed that allows you to enable or disable system services. chkconfig allows you to easily manipulate the services that start under certain runlevels. Issuing the command by itself with no additional parameters will result in any known services to be displayed along with their current state and runlevel. Any service that is configured in a run level will have a status of "on". Any services that are not configure in a runlevel will have the status of "off". chkconfig comes as standard with Red hat based systems and SUSE systems.

Listing services defined in a runlevel

To display all services we can simply issue the command "chkconfig" or "chkconfig --list" to display the current status of services and their relation to the relevant runlevel:

john@john-desktop:~$ chkconfig ntop ntop on john@john-desktop:~$ chkconfig --list ntop ntop ...
0 0


Build your cloud with Autopilot, the easiest way to create and manage an OpenStack cloud. Test drive on VMs or build a free test cloud on your own hardware for up to ten machines today.

Get started with Autopilot ›

Ubuntu Server for ARM

Optimised for hyperscale deployments and certified on a number of ARM chipsets, Ubuntu Server for ARM includes the 64-bit ARMv8 platforms.

Get Ubuntu Server for ARM ›

Ubuntu for POWER8

Ubuntu is now available on the IBM POWER8 platform, bringing the entire Ubuntu and OpenStack ecosystem to IBM POWER8

Get Ubuntu for POWER8 ›

Ubuntu for IBM LinuxONE

IBM LinuxONE and z Systems leverage open technology solutions to meet the demands of the new application economy. Ubuntu is now available, with Juju and Ubuntu OpenStack.

Get Ubuntu for LinuxONE...

0 0

The Upstart equivalent of chkconfig is the update-rc.d. There's some info on how to use it in the UbuntuBootupHowto linked in L. D. James's answer.

Admittedly, this tool is anything but friendly; it tends to expose the ugly underbelly of SysV init with all it's gory runlevel and priority blackmagic. I have almost never managed to get it to do what I want in the first go. chkconfig did a fantastic job of abstracting all those numbers away and providing a simple, usable interface that was loved by all. Nevertheless, it was always lipstick on a pig.

It's a brave new world and I would suggest you put in some time towards learning how Upstart works so that you can wire new jobs using that. For existing packages/applications that still provide you with SysV init scripts, update-rc.d should allow you to do everything that chkconfig did, except for one usecase. update-rc.d provides no clean way to see what the current status of a given service is, i.e., there is no equivalent...

0 0

In this case, I found out why Apache wouldn't start. I could not find a trace of this in the startup logs, only in the output printed to the screen on bootup.

But here you go: The last line in the script /etc/apache2/apache2.conf failed.


It says:

Include sites-enabled/

However, two of the sites I've set up are located in my own home directory - which is encrypted!

So, on bootup (during startup of Apache) these sites don't exist, and Apache fails and refuses to run.


I've created a small script called "disable_sites" and symlinked it into /etc/rc0.d and /etc/rc6.d (shutdown and reboot):

#!/bin/bash /usr/sbin/a2dissite vvsshop /usr/sbin/a2dissite neoflex /etc/init.d/apache2 reload exit 0

I also made a script to re-enable the sites whenever I log in and added it as a startup program in my System Settings. So now it works!

So, I suppose the lesson here is that when Apache inexplicably fails to load...

0 0

Runlevel is a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one runlevel is executed on startup; run levels are not executed one after another, i.e. either the runlevel 2, 3 or 4 is executed, not more of them sequentially or in any other order.

A runlevel defines the state of the machine after boot. Different runlevels are typically assigned (not necessarily in any particular order) to the single-user mode, multi-user mode without network services started, multi-user mode with network services started, system shutdown, and system reboot system states. The exact setup of these configurations varies between operating systems and Linux distributions. For example, runlevel 4 might be a multi-user GUI no-server configuration...

0 0

Answer: It was, in fact, performing reverse DNS resolution. Based on the suggestions below and this article, I added "UseDNS no" to my sshd_config, rebooted ssh, and now the password prompt displays immediately.

When I SSH into my server I am given the standard "login as:" prompt, followed by the "user@host's password:" prompt. For whatever reason, the second one always takes a while to display. My server isn't under any load and typically executes commands quite fast.

Now, we're talking only 10 seconds or so between the time I hit Enter for the username and when the second prompt displays, but when you do this a lot it gets annoying. I suspect Ubuntu is looking up my user account, but it has < 5 accounts on the entire installation.

Update @Josh /var/log/messages does contain this gem:

Oct 28 16:54:59 Athena sudo: pam_sm_authenticate: Called Oct 28 16:54:59 Athena sudo: pam_sm_authenticate: username = [msmith] Oct 28 16:54:59 Athena sudo: Warning: Using...
0 0

1. Install and configure the necessary dependencies

If you install Postfix to send email please select 'Internet Site' during setup. Instead of using Postfix you can also use Sendmail or configure a custom SMTP server and configure it as an SMTP server.

On Centos 6 and 7, the commands below will also open HTTP and SSH access in the system firewall.

sudo apt-get install curl openssh-server ca-certificates postfix

2. Add the GitLab package server and install the package

curl -sS | sudo bash sudo apt-get install gitlab-ce

If you are not comfortable installing the repository through a piped script, you can find the entire script here and select and download the package manually and install using

curl -LJO dpkg -i gitlab-ce-XXX.deb

3. Configure and start GitLab...

0 0