Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 446255

Summary: net-misc/openconnect-4.07 - Init script cannot start due to missing pid dir.
Product: Gentoo Linux Reporter: Matthew Schultz <mattsch>
Component: Current packagesAssignee: Matthew Schultz <mattsch>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, tomwij
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: openconnect-4.07-r1.ebuild
openconnect.init.in

Description Matthew Schultz 2012-12-06 14:03:38 UTC
If you're using a version of openrc 0.10 or later, /var/run and /run were migrated to a tmpfs which means any pid directories created by the ebuild will disappear on a reboot.  

Reproducible: Always

Steps to Reproduce:
After reboot: /etc/init.d/openconnect.vpn0 start 
Actual Results:  
pid directory does not exist

Expected Results:  
pid directory should be dynamically created by the init script when starting
Comment 1 Matthew Schultz 2012-12-06 14:04:21 UTC
Created attachment 331641 [details]
openconnect-4.07-r1.ebuild

Removed /var/run/openconnect directory creation since it's no longer needed.
Comment 2 Matthew Schultz 2012-12-06 14:07:22 UTC
Created attachment 331643 [details]
openconnect.init.in

New init script which dynamically created the openconnect pid directory.
Comment 3 Matthew Schultz 2012-12-06 16:50:18 UTC
Tom, I'm the maintainer, you need to assign to me.
Comment 4 Matthew Schultz 2012-12-06 16:53:10 UTC
Tom, and add proxy-maint@gentoo.org to email.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-06 16:54:45 UTC
Sorry, my portage tree was slightly behind, I don't have CVS access and don't know how to follow it using public access yet; corrected according to the new metadata.xml!
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-12-06 16:56:59 UTC
(In reply to comment #5)
> Sorry, my portage tree was slightly behind, I don't have CVS access and
> don't know how to follow it using public access yet; corrected according to
> the new metadata.xml!

err just use this link to checkout cvs
Anonymous Access: cvs -d :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot co gentoo-x86

see on the top of
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2012-12-11 19:46:06 UTC
  ebuild.minorsyn               1
   net-misc/openconnect/openconnect-4.07-r1.ebuild: Useless blank line on last line

Fixed this ^^^ and committed

+*openconnect-4.07-r1 (11 Dec 2012)
+
+  11 Dec 2012; Markos Chandras <hwoarang@gentoo.org>
+  +openconnect-4.07-r1.ebuild, files/openconnect.init.in:
+  Revbump with improved init script for missing pid directory. Bug #446255.
+  Thanks to Matthew Schultz <mattsch@gmail.com>
+