|
@@ -244,6 +244,21 @@ else
|
244
|
244
|
turn_off_rsys_logging
|
245
|
245
|
fi
|
246
|
246
|
|
|
247
|
+if [ -d /etc/exim4 ]; then
|
|
248
|
+ update-exim4.conf.template -r
|
|
249
|
+ update-exim4.conf
|
|
250
|
+ dpkg-reconfigure --frontend noninteractive exim4-config
|
|
251
|
+fi
|
|
252
|
+
|
|
253
|
+if [[ "$2" == "--reboot"* || "$2" == "--restart"* ]]; then
|
|
254
|
+ # if we are rebooting anyway then there is no need to
|
|
255
|
+ # restart the daemons
|
|
256
|
+ exit 0
|
|
257
|
+fi
|
|
258
|
+
|
|
259
|
+if [ -d /etc/exim4 ]; then
|
|
260
|
+ systemctl restart exim4
|
|
261
|
+fi
|
247
|
262
|
systemctl restart syslog
|
248
|
263
|
if [ -d /etc/tor ]; then
|
249
|
264
|
if [[ "$2" != "--onion" ]]; then
|
|
@@ -260,12 +275,6 @@ fi
|
260
|
275
|
if [ -d /etc/prosody ]; then
|
261
|
276
|
systemctl restart prosody
|
262
|
277
|
fi
|
263
|
|
-if [ -d /etc/exim4 ]; then
|
264
|
|
- update-exim4.conf.template -r
|
265
|
|
- update-exim4.conf
|
266
|
|
- dpkg-reconfigure --frontend noninteractive exim4-config
|
267
|
|
- systemctl restart exim4
|
268
|
|
-fi
|
269
|
278
|
if [ -d /etc/dovecot ]; then
|
270
|
279
|
systemctl restart dovecot
|
271
|
280
|
fi
|