Re: init.d and tinyproxy



On 05/31/2007 12:27 AM, William Xu wrote:
"Mumia W.." <paduille.4061.mumia.w+nospam@xxxxxxxxxxxxx> writes:

The manual page for invoke-rc.d suggests that it's mainly for the use of
Debian package maintainers. You are probably a normal user, so
"/etc/init.d/tinyproxy start" is the correct method for you.

It just says maintainers should use that, but doesn't say normal users
shouldn't use it. Anyway, can i call this a bug? probably in tinyproxy.


It's probably not a bug. Invoke-rc.d checks the current runlevel before deciding to start a process; if the process is not configured to run in the current runlevel, invoke-rc.d probably won't start it.

Check the outputs of these commands (as a normal user):

/sbin/runlevel
/usr/sbin/update-rc.d -n -f tinyproxy remove

(The -n prevents anything from happening.)

The first command shows you the current runlevel (the second number), and the second command shows you what runlevels start and stop tinyproxy. Probably, you're in a runlevel where tinyproxy is configured to stop.

Refer to these:

http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-runlevels
http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-no-x-start
man update-rc.d



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Failsafe mode
    ... >> I will try the command line YasT idea to see if that helps. ... You will need to use cursor keys, TAB, spacebar and enter to ... > good runlevel for system maintenance. ... try to log back in as ABCD I get an invalid login message. ...
    (alt.os.linux.suse)
  • Re: Starting a service
    ... On Mon, 2005-01-10 at 10:20 -0500, jim lawrence wrote: ... Paul said he does not have windowing running. ... If, for example, you are running in runlevel 3 as you indicate, you can ... Use "# man chkconfig" for all the info on how to use that command. ...
    (Fedora)
  • Re: Installation problem
    ... I started Linux in runlevel 3 and it started fine. ... I then did an init 5 command and the X system started. ... What error messages can you catch before it reboots? ...
    (linux.redhat)
  • Re: Fedora Core 4 hangs before switching to the greeter during bootup
    ... Assuming that you boot directly in runlevel 5, the output of this command ... safeguards that will abort the current task if it takes too long (like> ... You might also try Interactive startup ...
    (Fedora)
  • Re: [SLE] disable X in 9.3
    ... > monitor on the box I only want console access through the screen. ... From a command line as root, edit the file, /etc/inittab ... # The default runlevel is defined here ... OR, simply at the boot menu, type a 3 before you boot. ...
    (SuSE)