Bug 1266203

Summary: aiccu.service is wrong
Product: [Fedora] Fedora Reporter: Michael <bugs>
Component: aiccuAssignee: Pavel Šimerda (pavlix) <psimerda>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: psimerda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-25 10:41:01 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 2015-09-24 18:41:19 UTC
Description of problem:

systemctl start aiccu does not work



Version-Release number of selected component (if applicable):

Fedora 23 as of Sept. 24th 2015



How reproducible:

setup /etc/aiccu.conf

systemctl start aiccu

fails after a while with a timeout

starting aiccu without systemd works fine



Solution:

* chmod a-x /lib/systemd/system/aiccu.service

(no idea why x-bits were set)



* change aiccu.service from

# /lib/systemd/system/aiccu.service
# original version, wrong
[Unit]
Description=AICCU (Automatic IPv6 Connectivity Configuration Utility)
Wants=network.target network-online.target
After=network.target network-online.target time-sync.target

[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/aiccu
ExecStart=/usr/sbin/aiccu start $OPTIONS
ExecStop=/usr/sbin/aiccu stop
PIDFile=/run/aiccu.pid

[Install]
WantedBy=multi-user.target




to this:

# /lib/systemd/system/aiccu.service
# modified, does work
[Unit]
Description=AICCU (Automatic IPv6 Connectivity Configuration Utility)
Wants=network.target network-online.target
After=network.target network-online.target time-sync.target

[Service]
ExecStart=/usr/sbin/aiccu start

[Install]
WantedBy=multi-user.target


---

no need for forking, no need for PIDs



PS: I am no Systemd expert, so I might fail to see the concept behind the original service file. My much simpler version seems to work, where as the original version did not.

Comment 1 Michael 2015-09-25 10:41:01 UTC
My problem resulted from a own config file, where 'daemonize true' was missing. 

Sorry about the report, was my fault.