Commit f35e7dfe authored by Lorenzo Faletra's avatar Lorenzo Faletra

Import Debian version 1.51+parrot1

init-system-helpers (1.51+parrot1) testing; urgency=medium

  * Add new services to blacklist.
parent da64e88e
init-system-helpers (1.51+parrot1) testing; urgency=medium
* Add new services to blacklist.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Mon, 14 May 2018 19:18:55 +0200
init-system-helpers (1.51+parrot0) testing; urgency=medium
* Import new Debian version.
......
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Henrique Holschuh
.TH INVOKE\-RC.D 8 "1 March 2001" "Debian Project" "Debian GNU/Linux"
.SH NAME
invoke\-rc.d \- executes System-V style init script actions
.SH SYNOPSIS
.B invoke\-rc.d
.RI [ --quiet ]
.RI [ --force ]
.RI [ --try-anyway ]
.RI [ --disclose-deny ]
.RI [ --query ]
.RI [ --no-fallback ]
.I name
.I action
.RI [ init\ script\ parameters... ]
.HP
.B invoke\-rc.d
.RI [ --help ]
.HP
.SH DESCRIPTION
.B invoke\-rc.d
is a generic interface to execute System V style init script
.BI /etc/init.d/ name \fR
actions, obeying runlevel constraints as well as any local
policies set by the system administrator.
All access to the init scripts by Debian packages' maintainer
scripts should be done through
.B invoke\-rc.d\fR.
This manpage documents only the usage and behavior of
.BR invoke\-rc.d .
For a discussion of the System V style init script arrangements please
see
.BR init (8).
More information on invoke-rc.d can be found in the section on
runlevels and init.d scripts of the
.IR "Debian Policy Manual" .
.SH INIT SCRIPT ACTIONS
The standard actions are:
.IR start ,
.IR stop ,
.IR force\-stop ,
.IR restart ,
.IR try\-restart ,
.IR reload ,
.IR force\-reload ,
and
.IR status .
Other actions are accepted, but they can cause problems to
.B policy\-rc.d
(see the
.B INIT SCRIPT POLICY
section), so warnings are generated if the policy layer
is active.
Please note that not all init scripts will implement all
the actions listed above, and that the policy layer may
override an action to another action(s), or even deny it.
Any extra parameters will be passed to the init script(s) being
executed.
If an action must be carried out regardless of any local
policies, use the
.IR --force
switch.
.SH OPTIONS
.TP
.I --help
Display usage help.
.TP
.I --quiet
Quiet mode, no error messages are generated.
.TP
.I --force
Tries to run the init script regardless of policy and
init script subsystem errors.
.B Use of this option in Debian maintainer scripts is severely discouraged.
.TP
.I --try-anyway
Tries to run the init script if a non-fatal error is
detected.
.TP
.I --disclose-deny
Return status code 101 instead of status code 0 if
the init script action is denied by the policy layer.
.TP
.I --query
Returns one of the status codes 100-106. Does not
run the init script, and implies
.IR --disclose-deny
and
.IR --no-fallback .
.TP
.I --no-fallback
Ignores any fallback action requests by the policy
layer.
.B Warning:
this is usually a very bad idea for any actions other
than
.RI start .
.SH STATUS CODES
Should an init script be executed,
.B invoke\-rc.d
always returns the status code
returned by the init script. Init scripts should not return status codes in
the 100+ range (which is reserved in Debian and by the LSB). The status codes
returned by invoke\-rc.d proper are:
.TP
0
.IR Success .
Either the init script was run and returned exit status 0 (note
that a fallback action may have been run instead of the one given in the
command line), or it was not run because of runlevel/local policy constrains
and
.B --disclose-deny
is not in effect.
.TP
1 - 99
Reserved for init.d script, usually indicates a failure.
.TP
100
.B Init script ID
.BI ( name )
.BR unknown .
This means the init script was not registered successfully through
.B update\-rc.d
or that the init script does not exist.
.TP
101
.B Action not allowed\fR.
The requested action will not be performed because of runlevel or local
policy constraints.
.TP
102
.B Subsystem error\fR.
Init script (or policy layer) subsystem malfunction. Also, forced
init script execution due to
.I --try-anyway
or
.I --force
failed\fR.
.TP
103
.I Syntax error\fR.
.TP
104
.I Action allowed\fR.
Init script would be run, but
.B --query
is in effect.
.TP
105
.I Behavior uncertain\fR.
It cannot be determined if action should be carried out or not, and
.B --query
is in effect.
.TP
106
.I Fallback action requested\fR.
The policy layer denied the requested action, and
supplied an allowed fallback action to be used instead.
.SH INIT SCRIPT POLICY
.B invoke\-rc.d
introduces the concept of a policy layer which is used to verify if
an init script should be run or not, or if something else should be
done instead. This layer has various uses, the most immediate ones
being avoiding that package upgrades start daemons out-of-runlevel,
and that a package starts or stops daemons while inside a chroot
jail.
The policy layer has the following abilities: deny or approve the
execution of an action; request that another action (called a
.IR fallback )
is to be taken, instead of the action requested in invoke\-rc.d's
command line; or request multiple actions to be tried in order, until
one of them succeeds (a multiple
.IR fallback ).
.B invoke\-rc.d
itself only pays attention to the current runlevel; it will block
any attempts to start a service in a runlevel in which the service is
disabled. Other policies are implemented with the use of the
.B policy\-rc.d
helper, and are only available if
.B /usr/sbin/policy\-rc.d
is installed in the system.
.SH FILES
.TP
.BR /etc/init.d/*
System V init scripts.
.TP
.BR /usr/sbin/policy\-rc.d
Init script policy layer helper (not required).
.TP
.BR /etc/runlevel.conf
file-rc runlevel configuration (if the file-rc package is
being used).
.TP
.BR /etc/rc?.d/*
System V runlevel configuration (if the sysv-rc package is
being used).
.SH NOTES
.B invoke\-rc.d
special cases the
.I status
action, and returns exit status 4 instead of exit status 0 when
it is denied.
.SH BUGS
Please report any bugs using the Debian bug tracking system,
http://bugs.debian.org/, packages sysv\-rc or file\-rc
(depending on which version of invoke\-rc.d you are using).
.SH SEE ALSO
.IR "Debian Policy manual" ,
.br
.BR /etc/init.d/skeleton ,
.br
.BR update\-rc.d (8),
.br
.BR init (8),
.br
.BR /usr/share/doc/init-system-helpers/README.policy-rc.d.gz
.\" A man page for service(8). -*- nroff -*-
.\"
.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
.\"
.\" This copyrighted material is made available to anyone wishing to use,
.\" modify, copy, or redistribute it subject to the terms and conditions of the
.\" GNU General Public License v.2.
.\"
.\" This program is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
.\" more details.
.\"
.\" You should have received a copy of the GNU General Public License along
.\" with this program; if not, write to the Free Software Foundation, Inc.,
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
.\"
.\" Author: Miloslav Trmac <mitr@redhat.com>
.\" Updated by: Petter Reinholdtsen <pere@hungry.com>
.TH service 8 "Jan 2006"
.SH NAME
service \- run a System V init script
.SH SYNOPSIS
\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]
\fBservice \-\-status\-all\fR
\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR
.SH DESCRIPTION
.B service
runs a System V init script or systemd unit in as predictable an
environment as possible, removing most environment variables and with the
current working directory set to \fB/\fR.
The
.I SCRIPT
parameter specifies a System V init script,
located in \fB/etc/init.d/\fISCRIPT\fR, or the name of a systemd unit.
The existence of a systemd unit of the same name as a script in /etc/init.d
will cause the unit to take precedence over the init.d script.
The supported values of
.I COMMAND
depend on the invoked script.
.B service
passes
.I COMMAND
and
.I OPTIONS
to the init script unmodified. For systemd units, start, stop,
status, and reload are passed through to their systemctl/initctl
equivalents.
All scripts should support at least the
.B start
and
.B stop
commands.
As a special case, if
.I COMMAND
is \fB\-\-full-restart\fR, the script is run twice, first with the
.B stop
command, then with the
.B start
command.
.B service \-\-status\-all
runs all init scripts, in alphabetical order, with the
.B status
command. The status is [ + ] for running services, [ - ] for stopped
services and [ ? ] for services without a 'status' command. This
option only calls status for sysvinit jobs.
.SH EXIT CODES
.BR service
calls the init script and returns the status returned by it.
.SH FILES
.TP
\fB/etc/init.d\fR
The directory containing System V init scripts.
.TP
\fB/{lib,run,etc}/systemd/system\fR
The directories containing systemd units.
.SH ENVIRONMENT
.TP
\fBLANG\fR, \fBLANGUAGE\fR, \fBLC_CTYPE\fR, \fBLC_NUMERIC\fR, \fBLC_TIME\fR, \fBLC_COLLATE\fR, \fBLC_MONETARY\fR, \fBLC_MESSAGES\fR, \fBLC_PAPER\fR, \fBLC_NAME\fR, \fBLC_ADDRESS\fR, \fBLC_TELEPHONE\fR, \fBLC_MEASUREMENT\fR, \fBLC_IDENTIFICATION\fR, \fBLC_ALL\fR, \fBTERM\fR, \fBPATH\fR
The only environment variables passed to the init scripts.
.SH SEE ALSO
.IR /etc/init.d/skeleton ,
.br
.BR update\-rc.d (8),
.br
.BR init (8),
.br
.BR invoke\-rc.d (8).
.br
.BR systemctl (1).
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Authors: Ian Jackson, Miquel van Smoorenburg
.TH "UPDATE\-RC.D" "8" "14 November 2005" "Debian Project" "sysv-rc"
.SH "NAME"
update\-rc.d \- install and remove System\-V style init script links
.SH "SYNOPSIS"
.B update\-rc.d
.RI [ \-n ]
.RI [ \-f ]
.IB name " remove"
.HP
.B update\-rc.d
.RI [ \-n ]
.IB name " defaults"
.HP
.B update\-rc.d
.RI [ \-n ]
.IB name " disable|enable "
.RI [ " S|2|3|4|5 " ]
.SH "DESCRIPTION"
.B update\-rc.d
updates the System V style init script links
.BI /etc/rc runlevel .d/ NNname
whose target is the script
.BI /etc/init.d/ name \fR.
These links are run by
.B init
when it changes runlevels; they are generally used to start and stop
system services such as daemons.
.I runlevel
is one of the runlevels supported by
.BR init ", namely, " 0123456789S ", and "
.I NN
is the two\-digit sequence number that determines where in the sequence
.B init
will run the scripts.
This manpage documents only the usage and behaviour of
.BR update\-rc.d .
For a discussion of the System V style init script arrangements please
see
.BR init (8)
and the
.IR "Debian Policy Manual" .
.SH "INSTALLING INIT SCRIPT LINKS"
update\-rc.d requires dependency and runlevel information to be
provided in the init.d script LSB comment header of all init.d scripts.
See the insserv(8) manual page for details about the LSB header format.
When run with the
.BR defaults
option,
.B update\-rc.d
makes links named
.BI /etc/rc runlevel .d/[SK] NNname
that point to the script
.BR /etc/init.d/ \fIname\fR,
using runlevel and dependency information from the init.d script LSB
comment header.
If any files named
.BI /etc/rc runlevel .d/[SK]?? name
already exist then
.B update\-rc.d
does nothing.
The program was written this way so that it will never
change an existing configuration, which may have been
customized by the system administrator.
The program will only install links if none are present,
i.e.,
if it appears that the service has never been installed before.
.P
Older versions of
.B update\-rc.d
also supported
.BR start
and
.BR stop
options. These options are no longer supported, and are now
equivalent to the
.BR defaults
option.
.P
A common system administration error is to delete the links
with the thought that this will "disable" the service, i.e.,
that this will prevent the service from being started.
However, if all links have been deleted then the next time
the package is upgraded, the package's
.I postinst
script will run
.B update\-rc.d
again and this will reinstall links at their factory default locations.
The correct way to disable services is to configure the
service as stopped in all runlevels in which it is started by default.
In the System V init system this means renaming
the service's symbolic links
from
.B S
to
.BR K .
.P
The script
.BI /etc/init.d/ name
must exist before
.B update\-rc.d
is run to create the links.
.SH "REMOVING SCRIPTS"
When invoked with the
.I remove
option, update\-rc.d removes any links in the
.BI /etc/rc runlevel .d
directories to the script
.BI /etc/init.d/ name\fR.
The script must have been deleted already.
If the script is still present then
.B update\-rc.d
aborts with an error message.
.P
.B update\-rc.d
is usually called from a package's post\-removal script when that
script is given the
.B purge
argument.
Any files in the
.BI /etc/rc runlevel .d
directories that are not symbolic links to the script
.BI /etc/init.d/ name
will be left untouched.
.SH "DISABLING INIT SCRIPT START LINKS"
When run with the
.BR disable " [ " S|2|3|4|5 " ] "
options,
.B update\-rc.d
modifies existing runlevel links for the script
.BR /etc/init.d/ \fIname\fR
by renaming start links to stop links with a sequence number equal
to the difference of 100 minus the original sequence number.
.P
When run with the
.BR enable " [ " S|2|3|4|5 " ] "
options,
.B update\-rc.d
modifies existing runlevel links for the script
.BR /etc/init.d/ \fIname\fR
by renaming stop links to start links with a sequence number equal
to the positive difference of current sequence number minus 100, thus
returning to the original sequence number that the script had been
installed with before disabling it.
.P
Both of these options only operate on start runlevel links of S, 2,
3, 4 or 5. If no start runlevel is specified after the disable or enable
keywords, the script will attempt to modify links in all start runlevels.
.SH "OPTIONS"
.TP
.I \-n
Don't do anything, just show what we would do.
.TP
.I \-f
Force removal of symlinks even if
.BI /etc/init.d/ name
still exists.
.SH "EXAMPLES"
Insert links using the defaults:
.nf
.B " update\-rc.d foobar defaults"
The equivalent dependency header would have start and stop
dependencies on $remote_fs and $syslog, and start in
runlevels 2\-5 and stop in runlevels 0, 1 and 6.
.fi
Remove all links for a script (assuming foobar has been deleted
already):
.nf
.B " update\-rc.d foobar remove"
.fi
Example of disabling a service:
.nf
.B " update\-rc.d foobar disable"
.fi
Example of a command for installing a system initialization\-and\-shutdown script:
.nf
.B " update\-rc.d foobar defaults"
.fi
Example of a command for disabling a system initialization\-and\-shutdown script:
.nf
.B " update\-rc.d foobar disable"
.fi
.SH "BUGS"
See http://bugs.debian.org/sysv\-rc.
.SH "FILES"
.TP
.B /etc/init.d/
The directory containing the actual init scripts.
.TP
.B /etc/rc?.d/
The directories containing the links used by
.BR init
and managed by
.BR update\-rc.d .
.TP
.B /etc/init.d/skeleton
Model for use by writers of
.B init.d
scripts.
.SH "SEE ALSO"
.IR "Debian Policy Manual" ,
.br
.BR /etc/init.d/skeleton ,
.br
.BR insserv (8),
.BR sysv\-rc\-conf (8),
.BR bum (8),
.BR init (8).
......@@ -109,6 +109,8 @@ iodined disabled
mariadb disabled
minissdpd disabled
nfs-common disabled
nginx disabled
nmbd disabled
openbsd-inetd disabled
openvas-manager disabled
openvas-scanner disabled
......@@ -118,7 +120,10 @@ postgresql disabled
pppd-dns disabled
procmail disabled
redis-server disabled
redsocks disabled
rpcbind disabled
samba disabled
smbd disabled
saned disabled
ssh disabled
stunnel4 disabled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment