From 9fff3c587dfccaf1b7614bd02eaa97f567f1e0ea Mon Sep 17 00:00:00 2001 From: Steven Winship <39765413+stevenwinship@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:35:32 -0400 Subject: [PATCH] update monitor-smtp timer and documentation for reboot restart --- docs/Sphinx-guides/source/developerGuide/localEnvironment.md | 3 ++- environment/monitoring/monitor-smtp.timer | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/Sphinx-guides/source/developerGuide/localEnvironment.md b/docs/Sphinx-guides/source/developerGuide/localEnvironment.md index b9e8ebb..9c9b0e9 100644 --- a/docs/Sphinx-guides/source/developerGuide/localEnvironment.md +++ b/docs/Sphinx-guides/source/developerGuide/localEnvironment.md @@ -93,8 +93,9 @@ Copy ppr-ojs/environment/monitoring/smtp-monitor.sh to your home directory on th The default directory is /home/core/smtp-monitor.sh but can be changes by editing the monitor-smtp.service file -Start the service: +Start the service (and enable startup on reboot): ``` +sudo systemctl enable monitor-smtp.timer sudo systemctl start monitor-smtp.timer ``` A log will be generated and can be viewed by: diff --git a/environment/monitoring/monitor-smtp.timer b/environment/monitoring/monitor-smtp.timer index 14d7fe0..91d59f6 100644 --- a/environment/monitoring/monitor-smtp.timer +++ b/environment/monitoring/monitor-smtp.timer @@ -3,3 +3,6 @@ Description=Run monitor-smtp.service every 10 minutes [Timer] OnCalendar=*:0/10 + +[Install] +WantedBy=timers.target