mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-06 08:02:27 +08:00
24 lines
636 B
Bash
24 lines
636 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
OURNAME=14_install_start_services.sh
|
||
|
|
||
|
echo -e "\n-- Executing ${ORANGE}${OURNAME}${NC} subscript --"
|
||
|
|
||
|
# update reload script for future updates
|
||
|
echo "#!/bin/bash
|
||
|
$SYSTEMCTL_PATH reload nginx
|
||
|
$SYSTEMCTL_PATH reload wildduck
|
||
|
$SYSTEMCTL_PATH restart zone-mta
|
||
|
$SYSTEMCTL_PATH restart haraka
|
||
|
$SYSTEMCTL_PATH restart wildduck-webmail" > /usr/local/bin/reload-services.sh
|
||
|
chmod +x /usr/local/bin/reload-services.sh
|
||
|
|
||
|
### start services ####
|
||
|
|
||
|
$SYSTEMCTL_PATH start mongod
|
||
|
$SYSTEMCTL_PATH start wildduck
|
||
|
$SYSTEMCTL_PATH start haraka
|
||
|
$SYSTEMCTL_PATH start zone-mta
|
||
|
$SYSTEMCTL_PATH start wildduck-webmail
|
||
|
$SYSTEMCTL_PATH reload nginx
|