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
6c302f07
Commit
6c302f07
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
If we are about to reboot anyway then don't bother restarting daemons
parent
c49e53ea
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
+15
-6
15 additions, 6 deletions
src/freedombone-logging
src/freedombone-utils-final
+3
-3
3 additions, 3 deletions
src/freedombone-utils-final
with
18 additions
and
9 deletions
src/freedombone-logging
+
15
−
6
View file @
6c302f07
...
...
@@ -244,6 +244,21 @@ else
turn_off_rsys_logging
fi
if
[
-d
/etc/exim4
]
;
then
update-exim4.conf.template
-r
update-exim4.conf
dpkg-reconfigure
--frontend
noninteractive exim4-config
fi
if
[[
"
$2
"
==
"--reboot"
*
||
"
$2
"
==
"--restart"
*
]]
;
then
# if we are rebooting anyway then there is no need to
# restart the daemons
exit
0
fi
if
[
-d
/etc/exim4
]
;
then
systemctl restart exim4
fi
systemctl restart syslog
if
[
-d
/etc/tor
]
;
then
if
[[
"
$2
"
!=
"--onion"
]]
;
then
...
...
@@ -260,12 +275,6 @@ fi
if
[
-d
/etc/prosody
]
;
then
systemctl restart prosody
fi
if
[
-d
/etc/exim4
]
;
then
update-exim4.conf.template
-r
update-exim4.conf
dpkg-reconfigure
--frontend
noninteractive exim4-config
systemctl restart exim4
fi
if
[
-d
/etc/dovecot
]
;
then
systemctl restart dovecot
fi
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-final
+
3
−
3
View file @
6c302f07
...
...
@@ -72,17 +72,17 @@ $(get_ssh_server_key)
echo
''
echo
$'Shutting down the system. Detatch the ethernet cable, attach wifi dongle, then power on again.'
echo
''
${
PROJECT_NAME
}
-logging
off
${
PROJECT_NAME
}
-logging
off
--restart
systemctl poweroff
return
fi
echo
$'Turning off logging'
${
PROJECT_NAME
}
-logging
off
${
PROJECT_NAME
}
-logging
off
--restart
echo
$'Rebooting the system'
systemctl reboot
-i
fi
echo
$'Turning off logging'
${
PROJECT_NAME
}
-logging
off
${
PROJECT_NAME
}
-logging
off
--restart
}
function
update_installed_apps_list
{
...
...
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