mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added insserv support for Debian install script.
This commit is contained in:
parent
526bb07a15
commit
6967455c8f
@ -13,7 +13,8 @@ function install_dependencies() {
|
||||
|
||||
function reload_cron() {
|
||||
install_log "Reloading cron service"
|
||||
if [ -x $(which service) ]; then
|
||||
hash service 2>/dev/null
|
||||
if [[ $? == 0 ]]; then
|
||||
service cron reload
|
||||
else
|
||||
/etc/init.d/cron reload
|
||||
@ -22,5 +23,10 @@ function reload_cron() {
|
||||
|
||||
function enable_init() {
|
||||
install_log "Enabling automatic startup and shutdown"
|
||||
hash insserv 2>/dev/null
|
||||
if [[ $? == 0 ]]; then
|
||||
insserv msm
|
||||
else
|
||||
update-rc.d msm defaults
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user