0byt3m1n1
Path:
/
data
/
[
Home
]
File: .httpd
#!/sbin/runscript # Copyright 2007 Inquent Technologies extra_commands="${extra_commands} graceful" httpd_bin="/usr/services/vux/apache/bin/httpd" depend() { need net netmount use dns logger after sshd nscd nfsmount } start() { ebegin "Setting ulimit" ulimit -v 17626616 # 16 GB virtual ulimit -r 8813308 # 8 GB resident eend $? ebegin "Starting apache" ${httpd_bin} -k start eend $? } stop() { ebegin "Stopping apache" ${httpd_bin} -k stop err=$? while [ ! -n "`pgrep httpd`" ]; do sleep 1; done; eend $err } restart() { svc_stop svc_start } graceful() { ebegin "Setting ulimit" ulimit -v 17626616 # 8 GB virtual ulimit -r 8813308 # 4 GB resident eend $? ebegin "Gracefully restarting apache" ${httpd_bin} -k graceful eend $? }