Bug 1266203 - aiccu.service is wrong
Summary: aiccu.service is wrong
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: aiccu
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-24 18:41 UTC by Michael
Modified: 2015-09-25 10:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-25 10:41:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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