Sponsored Content
Operating Systems Linux Application services not starting with server reboot Post 302984777 by Corona688 on Monday 31st of October 2016 12:21:21 PM
Old 10-31-2016
The first google hit for 'ubuntu chkconfig' tells me that ubuntu does not use chkconfig, it uses update-rc.d, which you run like this:

Code:
# Effectively, to 'install' something you put in /etc/init.d/
update-rc.d servicename defaults
# To add a service to a runlevel
update-rc.d servicename enable 2
# To remove a service from a runlevel
update-rc.d servicename disable 2

I think 2 is the normal runlevel on Ubuntu, this can differ from distro to distro, try /sbin/runlevel (as normal user) to see what runlevel you are right now.
 

9 More Discussions You Might Find Interesting

1. IP Networking

stopping and starting network services

Solaris v5.6 how do you stop and start the network services? (4 Replies)
Discussion started by: Westy564
4 Replies

2. Solaris

starting Oracle on Reboot

Hi All, I have to maunally startup oracle and the associated listeners whenever the Sun Solaris server is rebooted. Is there any way by which, everytime the server boots up, The Oracle startups itself. Do we need to change the init.ora file or the init.d file? Please let me know which files... (1 Reply)
Discussion started by: rahulrathod
1 Replies

3. HP-UX

The server is not starting all services

Hi everybody When I Boot/restart my HP-UX server when it reaches the step described below doesn't go through. When I kick a key in the console it show me the login prompt and a can log on but I cannot access the server from the network, I can only do it via LAN console. Please, can you help... (3 Replies)
Discussion started by: cgege
3 Replies

4. AIX

services persistant across reboot

Hi, I am nerw to AIX. how can i make certain services to be persistant across reboot,similar to "chkconfig" in linux. Thanks, amit (2 Replies)
Discussion started by: amit4g
2 Replies

5. HP-UX

Services persistant across reboot

Hi All, I need to run a daemon which should start automatically during reboot. which all files i need to alter/modify ? /etc/inittab ? Thanks, Amit (1 Reply)
Discussion started by: amit4g
1 Replies

6. UNIX for Dummies Questions & Answers

Starting daemons at reboot.

I rebooted my server (solaris 5.8) and I had to manually start the cron and mailx daemons. How do I get these to automatically start at reboot? Thanks in advance. (2 Replies)
Discussion started by: shorty
2 Replies

7. AIX

xntpd starts after reboot only when HACMP services are started ?

Hello, Running AIX 6.1, AIX machine is HACMP node. Recently I set up ntp service. Started xntpd by hand - everythig is OK. Configured xntpd to start after reboot and rebooted the machine. After reboot checked xntpd: # lssrc -a|grep ntp xntpd tcpip ... (5 Replies)
Discussion started by: vilius
5 Replies

8. Shell Programming and Scripting

Help with restarting of application with reboot of AIX server

Hi, We have hosted our application on AIX server. The problem is that we have to start our application manually once the server is rebooted. Please guide me in writing a script that does this job automatically with the re-start of the server. I'm looking for something like windows services in... (2 Replies)
Discussion started by: himanshu397
2 Replies

9. Solaris

Lot of services in non-global zones, in uninitialized after reboot

Hello, This is Solaris-10 server, running with 4 non-global zones. This server was hung today and I had to reboot it forcefully from console. Then root file-system was not clean and I had to run fsck from failsafe mode. After it came back in run-level-3, lot of services are showing in... (3 Replies)
Discussion started by: solaris_1977
3 Replies
RUNLEVEL(8)                                                          runlevel                                                          RUNLEVEL(8)

NAME
runlevel - Print previous and current SysV runlevel SYNOPSIS
runlevel [options...] OVERVIEW
"Runlevels" are an obsolete way to start and stop groups of services used in SysV init. systemd provides a compatibility layer that maps runlevels to targets, and associated binaries like runlevel. Nevertheless, only one runlevel can be "active" at a given time, while systemd can activate multiple targets concurrently, so the mapping to runlevels is confusing and only approximate. Runlevels should not be used in new code, and are mostly useful as a shorthand way to refer the matching systemd targets in kernel boot parameters. Table 1. Mapping between runlevels and systemd targets +---------+-------------------+ |Runlevel | Target | +---------+-------------------+ |0 | poweroff.target | +---------+-------------------+ |1 | rescue.target | +---------+-------------------+ |2, 3, 4 | multi-user.target | +---------+-------------------+ |5 | graphical.target | +---------+-------------------+ |6 | reboot.target | +---------+-------------------+ DESCRIPTION
runlevel prints the previous and current SysV runlevel if they are known. The two runlevel characters are separated by a single space character. If a runlevel cannot be determined, N is printed instead. If neither can be determined, the word "unknown" is printed. Unless overridden in the environment, this will check the utmp database for recent runlevel changes. OPTIONS
The following option is understood: --help Print a short help text and exit. EXIT STATUS
If one or both runlevels could be determined, 0 is returned, a non-zero failure code otherwise. ENVIRONMENT
$RUNLEVEL If $RUNLEVEL is set, runlevel will print this value as current runlevel and ignore utmp. $PREVLEVEL If $PREVLEVEL is set, runlevel will print this value as previous runlevel and ignore utmp. FILES
/run/utmp The utmp database runlevel reads the previous and current runlevel from. SEE ALSO
systemd(1), systemd.target(5), systemctl(1) systemd 237 RUNLEVEL(8)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy