Bug 1307222

Summary: Tinc shutdown script (tinc-down) is not called on systemd service stop
Product: [Fedora] Fedora EPEL Reporter: Michael Ivanov <exception0x876>
Component: tincAssignee: Fabian Affolter <mail>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-05 10:18:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Ivanov 2016-02-13 10:24:41 UTC
Description of problem:
When you execute systemctl stop tincd@network, the shutdown script in /etc/tinc/network/tinc-down is not executed. The reason is incorrect termination of tinc daemon.


Version-Release number of selected component (if applicable):
1.0.24-6.el7

How reproducible:
Always

Steps to Reproduce:
1. systemctl stop tincd@network
2. systemctl status tincd@network to watch output

I've fixed it by removing 

ExecStop=/usr/sbin/tincd -n %i -k

from tincd@.service

and adding

KillSignal=SIGTERM

though it would probably work without it.