invoke-rc.d [--quiet] [--force] [--try-anyway] [--disclose-deny] [--query] [--no-fallback]
name action [init script parameters…]
Executes System V style init script /etc/init.d/name actions, obeying runlevel constraints as well as any local policies
Access to the init scripts should be done through invoke-rc.d.
For init scripts see init(8).
start, stop, force-stop, restart, try-restart, reload, force-reload, and status.
Other actions are accepted, but they can cause problems to policy-rc.d (see the INIT SCRIPT POLICY section), so warnings are generated if the policy layer is active.
--help |
0 |
invoke-rc.d introduces the concept of a policy layer which is used to verify if an init script should be run or if something else should be done instead.The policy layer has the abilities:
invoke-rc.d pays attention to the current runlevel; blockin attempts to start a service in a runlevel in which the service is disabled.
Other policies are implemented with policy-rc.d helper, and are only available if
/usr/sbin/policy-rc.d is in the system.
| System V init scripts. | /etc/init.d/* |
| Init script policy layer helper (not required). | /usr/sbin/policy-rc.d |
| File-rc runlevel configuration (if the file-rc package is being used). | /etc/runlevel.conf |
| System V runlevel configuration (if the sysv-rc package is being used). | /etc/rc?.d/* |
Special cases the status action, and returns exit status 4 when it is denied.
SEE ALSO
/etc/init.d/skeleton
update-rc.d(8),
init(8),
/usr/share/doc/init-system-helpers/README.policy-rc.d.gz
/etc/init.d from RaspberyPi
2ping bluemon dhcpcd keyboard-setup.sh ntp procps rsyslog udev alsa-utils bluetooth dphys-swapfile kmod paxctld raspi-config ssh x11-common anacron console-setup.sh fake-hwclock lightdm plymouth resize2fs_once sudo avahi-daemon cron grafana networking plymouth-log rpcbind telegraf binfmt-support dbus hwclock.sh nfs-common postfix rsync triggerhappy