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