Bug 1266203 - aiccu.service is wrong
aiccu.service is wrong
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: aiccu (Show other bugs)
23
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pavel Šimerda (pavlix)
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-24 14:41 EDT by Michael
Modified: 2015-09-25 06:41 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-25 06:41:01 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael 2015-09-24 14:41:19 EDT
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 06:41:01 EDT
My problem resulted from a own config file, where 'daemonize true' was missing. 

Sorry about the report, was my fault.

Note You need to log in before you can comment on or make changes to this bug.