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
f71f6d7c
Commit
f71f6d7c
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Kill ports before restarting nginx
parent
c393acfc
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-logging
+5
-4
5 additions, 4 deletions
src/freedombone-logging
src/freedombone-upgrade
+0
-7
0 additions, 7 deletions
src/freedombone-upgrade
with
5 additions
and
11 deletions
src/freedombone-logging
+
5
−
4
View file @
f71f6d7c
...
...
@@ -252,10 +252,6 @@ if [ -d /etc/tor ]; then
systemctl restart tor
fi
fi
if
[
-d
/etc/nginx
]
;
then
systemctl restart php7.0-fpm
systemctl restart nginx
fi
if
[
-f
/etc/init.d/spamassassin
]
;
then
systemctl restart spamassassin
fi
...
...
@@ -278,4 +274,9 @@ if [ -d /etc/postgresql ]; then
systemctl restart postgresql
fi
fuser
-k
80/tcp
fuser
-k
443/tcp
systemctl restart php7.0-fpm
systemctl restart nginx
exit
0
This diff is collapsed.
Click to expand it.
src/freedombone-upgrade
+
0
−
7
View file @
f71f6d7c
...
...
@@ -132,13 +132,6 @@ fi
# If logging was left on then turn it off
${
PROJECT_NAME
}
-logging
off
# This is a hack to fix nginx failures which happen sometimes
# when matrix is installed
if
[
-d
/etc/matrix
]
;
then
systemctl restart matrix
systemctl restart nginx
fi
# upgrading file prevents USB canary from activating
if
[
-f
/tmp/.upgrading
]
;
then
rm
/tmp/.upgrading
...
...
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