yeah, just would like a useable init-script for gentoo (http://www.gentoo.org) in the distribution as the current one doesn't work there (it needs dependencies and such).
#!/sbin/runscript
depend()
{
use net
}
start()
{
"%LSWS_CTRL%" start 2>/dev/null 1>&2
}
stop()
{
"%LSWS_CTRL%" stop 2>/dev/null 1>&2
}
restart()
{
"%LSWS_CTRL%" restart 2>/dev/null 1>&2
}
depend() {
need net
use mysql dns logger netmount postgres
after sshd
}
start() {
ebegin "Starting apache"
env -i PATH=$PATH PERL5LIB=PERL5LIB /sbin/start-stop-daemon -o --quiet \
--start --startas /usr/sbin/apache \
--pidfile /var/run/apache.pid -- ${APACHE_OPTS}
eend $?
}
stop() {
ebegin "Stopping apache"
/usr/sbin/apachectl stop >/dev/null
start-stop-daemon -o --quiet --stop --pidfile /var/run/apache.pid
eend $?
}
#!/sbin/runscript
depend()
{
need net
use mysql dns netmount postgres
after sshd
}
start()
{
ebegin "Starting LiteSpeed Web Server"
"%LSWS_CTRL%" start 2>/dev/null 1>&2
eend $?
}
stop()
{
ebegin "Stopping LiteSped Web Server"
"%LSWS_CTRL%" stop 2>/dev/null 1>&2
eend $?
}
restart()
{
ebegin "Restarting LiteSpeed Web Server"
"%LSWS_CTRL%" restart 2>/dev/null 1>&2
eend $?
}