service - Apache init.d script -


i have following script start, stop, restart apache2 in debian 7

#!/bin/sh ### begin init info # provides:          apache2 # required-start:    $all # required-stop:     $all # default-start:     2 3 4 5 # default-stop:      0 1 6 # short-description: apache2 # description: start apache2 ### end init info  case "$1" in start)         echo "starting apache ..."         # change location specific location         /usr/local/apache2/bin/apachectl start ;; stop)         echo "stopping apache ..."         # change location specific location         /usr/local/apache2/bin/apachectl stop ;; graceful)         echo "restarting apache gracefully..."         # change location specific location         /usr/local/apache2/bin/apachectl graceful ;; restart)         echo "restarting apache ..."         # change location specific location         /usr/local/apache2/bin/apachectl restart ;; *)         echo "usage: '$0' {start|stop|restart|graceful}"         exit 64 ;; esac exit 0 

when add script update-rc.d see following warnings:

root@pomelo:/etc/init.d# update-rc.d apache2 defaults update-rc.d: using dependency based boot sequencing insserv: script jexec broken: incomplete lsb comment. insserv: missing `required-stop:'  entry: please add if empty. insserv: missing `default-stop:'   entry: please add if empty. insserv: default-stop  undefined, assuming empty stop  runlevel(s) script `jexec' 

but added required-stop , default-stop script.

does know how solve problem?

the issue not in apache2 init script, in 'jexec' says 'script jexec broken'.

that 1 missing required-stop , default-stop

had same issue on sles boxen. don't worry though, if shows these errors, still runs fine!

hth


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -