. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 52.223.31.75 / Your IP : 172.31.32.98 [ Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE Domains : 4 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /etc/init.d/ |
Upload File : |
#!/bin/bash
#
# cfn-hup CloudFormation update trigger daemon
#
# chkconfig: - 80 20
#
# description: Runs user-specified actions when a
# specified CloudFormation stack is
# updated
# processname: cfn-hup
# config: /etc/cfn/cfn-hup.conf
# pidfile: /var/run/cfn-hup.pid
#
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting cfn-hup: "
daemon /opt/aws/bin/cfn-hup
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cfn-hup
}
stop() {
echo -n $"Stopping cfn-hup: "
killproc -p /var/run/cfn-hup.pid cfn-hup
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cfn-hup
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload|reload)
restart
;;
condrestart|try-restart)
[ -f /var/lock/subsys/cfn-hup ] && restart
;;
status)
status -p /var/run/cfn-hup.pid cfn-hup
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
exit 1
esac
exit $RETVAL