Bug 202371 - security/tinc: does not start on boot
Summary: security/tinc: does not start on boot
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-16 18:18 UTC by Ting-Wei Lan
Modified: 2016-01-14 06:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ting-Wei Lan 2015-08-16 18:18:49 UTC
tincd fails to start on boot with the following messages:

Starting tincd for: <network_name>
Shared object "liblzo2.so.2" not found, required by "tincd"
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2015-08-16 19:00:51 UTC
I can not reproduce your problem.

The Makefile contains the dependency:

LIB_DEPENDS=    liblzo2.so:${PORTSDIR}/archivers/lzo2

Please check your system.
I doubt rebuild or reinstall lzo2.
Comment 2 Ting-Wei Lan 2015-08-16 19:12:53 UTC
liblzo2.so.2 exists on my system, and 'service tincd start' works. The problem is that it does not start on boot. I see this problem on at least 3 hosts.
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2015-08-26 06:01:19 UTC
A Fix has been commited.
Please update.
Comment 4 Ting-Wei Lan 2015-08-26 06:49:07 UTC
I updated tinc to 1.0.26_1, but it still doesn't work. It seems it is 'BEFORE: routing' that causes it to start before ldconfig.
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2015-08-26 15:48:11 UTC
'BEFORE: routing' is needed so the static routes can be set in rc.conf.

ldconfig is called to late here.

rcorder can not fix this.

rcorder: Circular dependency on file `files/tincd.in'.
rcorder: Circular dependency on provision `ldconfig' in file `files/tincd.in'.
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-01-14 06:03:06 UTC
A commit references this bug:

Author: dinoex
Date: Thu Jan 14 06:02:05 UTC 2016
New revision: 406095
URL: https://svnweb.freebsd.org/changeset/ports/406095

Log:
  - fix startup order conflict
  - allow tinc to start early, so "static_routes" in /etc/rc.conf works.
  PR:		202371

Changes:
  head/security/tinc/Makefile
  head/security/tinc/files/tincd.in
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2016-01-14 06:05:00 UTC
As there was no solution in base,
we have to call ldconfig here.