Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 948191 Details for
Bug 1153315
Multiple bugs in NetworkManager-l2tp
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make "ipsec setup restart" work if the service isn't already running
ipsec-setup (text/plain), 1.27 KB, created by
Alan Stern
on 2014-10-18 22:12:57 UTC
(
hide
)
Description:
Make "ipsec setup restart" work if the service isn't already running
Filename:
MIME Type:
Creator:
Alan Stern
Created:
2014-10-18 22:12:57 UTC
Size:
1.27 KB
patch
obsolete
>When the ipsec setup script is called with a "restart" argument, it >doesn't start up the ipsec service unless the service is already >running. That's bad because the service is not started by default. > >This patch changes the script so that if the service isn't already >running, it will be started. > >Index: /usr/libexec/ipsec/setup >=================================================================== >--- /usr/libexec/ipsec/setup.orig 2014-09-09 14:38:45.000000000 -0400 >+++ /usr/libexec/ipsec/setup 2014-10-18 17:11:22.138693113 -0400 >@@ -156,16 +156,16 @@ > exit 0 > ;; > restart|--restart) >- # assumes preparations for running have already been done, as service should be running now > if [ ${initsystem} = systemd ]; then >+ # do not use 'restart' because systemd is overly "smart" >+ # and will refuse the restart when stopped. > systemctl status ipsec.service > /dev/null > RETVAL=$? > if [ $RETVAL -ne 0 ]; then > echo "systemd: ipsec service is not running" >- exit 1 >+ # start everything from scratch >+ exec $0 start > else >- # do not use 'restart' because systemd is overly "smart" >- # and will refuse the restart when stopped. > echo "Redirecting to: systemctl stop+start ipsec.service" > systemctl stop ipsec.service > exec systemctl start ipsec.service
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1153315
:
947288
|
947289
| 948191 |
948193
|
948194
|
948195
|
948196
|
948197