2018-06-08 04:09:57 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
OURNAME=14_install_start_services.sh
|
|
|
|
|
|
|
|
echo -e "\n-- Executing ${ORANGE}${OURNAME}${NC} subscript --"
|
|
|
|
|
2020-03-16 18:54:47 +08:00
|
|
|
# Run tmpfiles definitions to ensure required directories/files
|
|
|
|
systemd-tmpfiles --create --remove
|
|
|
|
|
|
|
|
# Restart rsyslog for the changes to take effect
|
|
|
|
systemctl restart rsyslog
|
|
|
|
|
2018-06-08 04:09:57 +08:00
|
|
|
# update reload script for future updates
|
|
|
|
echo "#!/bin/bash
|
|
|
|
$SYSTEMCTL_PATH reload nginx
|
2023-08-24 16:18:18 +08:00
|
|
|
$SYSTEMCTL_PATH restart wildduck
|
2018-06-08 04:09:57 +08:00
|
|
|
$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
|
2021-06-25 21:44:49 +08:00
|
|
|
$SYSTEMCTL_PATH start redis
|
2018-06-08 04:09:57 +08:00
|
|
|
$SYSTEMCTL_PATH start wildduck
|
|
|
|
$SYSTEMCTL_PATH start haraka
|
|
|
|
$SYSTEMCTL_PATH start zone-mta
|
|
|
|
$SYSTEMCTL_PATH start wildduck-webmail
|
|
|
|
$SYSTEMCTL_PATH reload nginx
|