PS shows nginx as starting early on server boot. For example, running
ps -e -o pid,user,etime,args
1136 root 09:50 /usr/sbin/sshd -D
1147 root 09:50 cron
1162 root 09:50 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
1248 pgb 09:43 /usr/sbin/pgbouncer -d /var/local/pgbouncer/pgbouncer.ini
1436 root 09:31 /usr/sbin/apache2 -k start
The third column shows elapsed run time, in minutes and seconds.
Nginx has started the same second as sshd, 7 seconds before pgbouncer, and 19 seconds before apache2.
The rc2.d scripts are:
So nginx should be starting after all the other scripts, but ps shows it to be starting first. Why is that?