Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
3e913e58
Commit
3e913e58
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Prevent mail processes from proliferating
parent
4321770e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-base-email
+11
-0
11 additions, 0 deletions
src/freedombone-base-email
src/freedombone-upgrade
+1
-0
1 addition, 0 deletions
src/freedombone-upgrade
with
12 additions
and
0 deletions
src/freedombone-base-email
+
11
−
0
View file @
3e913e58
...
...
@@ -1663,6 +1663,16 @@ function refresh_gpg_keys {
fi
}
function
prevent_mail_process_overrun
{
{
echo
'#!/bin/bash'
;
echo
"exim_ctr=
\$
(pgrep
\"
exim4
\"
| wc -l)"
;
echo
"if [
\"\$
exim_ctr
\"
-gt 5 ]; then"
;
echo
' exim -bp | exiqgrep -i | xargs exim -Mrm'
;
echo
'fi'
;
}
>
/usr/bin/exim_check
chmod
+x /usr/bin/exim_check
cron_add_mins 5
'/usr/bin/exim_check'
}
function
install_email
{
if
[[
$SYSTEM_TYPE
==
"mesh"
*
]]
;
then
return
...
...
@@ -1675,6 +1685,7 @@ function install_email {
check_email_address_exists
install_email_basic
configure_email_onion
prevent_mail_process_overrun
mark_completed
"
${
FUNCNAME
[0]
}
"
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-upgrade
+
1
−
0
View file @
3e913e58
...
...
@@ -102,6 +102,7 @@ if [ -d "$PROJECT_DIR" ]; then
email_disable_chunking
rm
/etc/exim4/exim4.conf.template.bak
*
email_update_onion_domain
prevent_mail_process_overrun
#defrag_filesystem
# reinstall tor from backports
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment