As per this question, I'd like to start a /etc/init.d
script on boot. I have the following script comments:
# Startup script for Wowza Media Server
#
# chkconfig: - 80 20
# description: Wowza Media Server is a media server
#
#### BEGIN INIT INFO
# Provides: WowzaMediaServer
# Required-Start: $syslog $time $local_fs $remote_fs
# Required-Stop: $syslog $time $local_fs $remote_fs
# Default-Start: 3 4 5
# Default-Stop: S 0 1 2 6
# Short-Description: Wowza Media Server 3 Init Script
# Description: Wowza Media Server 3 Init Script
### END INIT INFO
I understand that for Debian and Ubuntu systems, rather than using chkconfig
, I need to use update-rc.d
. I've done this in the past, but it seems that update-rc.d
just links the script to all runlevels. Is this really the case?
I need this script to only run when starting after networking is up; I'm running a script that needs to curl
a URL in order to determine the public DNS name of the host (EC2). How can I add this script to auto-start using update-rc.d
in the way I'm looking to do it?
update-rc.d
does? Yes, it links the script to all (normal) runlevels, so what?/etc/network/if-up.d/