Gentoo LAMP init-script
20. März 2010
Hab grad auf die Schnelle ein init-script im Gentoo-Stil gebastelt, das nix andres macht als Apache und MySQL zu starten/stoppen.
#!/sbin/runscript
depend() {
use apache2 mysql
}
start() {
ebegin "Starting Apache"
/etc/init.d/apache2 start
eend $?
ebegin "Starting Mysql"
/etc/init.d/mysql start
eend $?
}
stop() {
ebegin "Stopping Apache"
/etc/init.d/apache2 stop
eend $?
ebegin "Stopping Mysql"
/etc/init.d/mysql stop
eend $?
eend 0
}
Kommentar schreiben