mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
apache: add simple init script
Also preinst and postrm are removed. busybox's httpd isn't installed by default, so these gimmicks seem antiquated. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
reload() {
|
||||
apachectl -k restart
|
||||
}
|
||||
|
||||
restart() {
|
||||
apachectl -k restart
|
||||
}
|
||||
|
||||
start() {
|
||||
mkdir -p /var/log/apache2 /var/run/apache2
|
||||
apachectl -k start
|
||||
}
|
||||
|
||||
stop() {
|
||||
apachectl -k stop
|
||||
}
|
||||
Reference in New Issue
Block a user