Debian Runlevel Configuration for Services
The following command creates symbolic links to the System V runlevel directories for /etc/init.d/php-fastcgi
.
# update-rc.d php-fastcgi defaults
The script uses the information from the standardized headers of the start-stop scripts.
#!/bin/bash
### BEGIN INIT INFO
# Provides: php-fastcgi
# Required-Start: $nginx
# Required-Stop: $nginx
Default start: 2 3 4 5
Default stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop php-fastcgi
### END INIT INFO
The option -n
is the Simulation mode. In this case, the command only outputs what it would do.
# update-rc.d -n php-fastcgi defaults
update-rc.d: using dependency based boot sequencing
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc0.d/K02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/../rc1.d/K02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc2.d/S02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc3.d/S02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc4.d/S02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc5.d/S02php-fastcgi
insserv: enable service ../init.d/php-fastcgi -> /etc/init.d/.../rc6.d/K02php-fastcgi
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
The following command deletes the symbolic links.
# update-rc.d php-fastcgi remove