If you maintain a port that specifies its pid file location in its configuration file you may be interested in the get_pidfile_from_conf() method that I added to rc.subr recently. The change has been MFC'ed so it's available in RELENG_[78] as well.

To see an example of how to implement it in a ports rc.d script (by testing first to see if the function exists) you can take a look at x11/slim. If you're interested in this and would like help and/or a review of your patch feel free to follow up here, or on freebsd...@freebsd.org.


Doug

--

        Nothin' ever doesn't change, but nothin' changes much.
                        -- OK Go

        Breadth of IT experience, and depth of knowledge in the DNS.
        Yours for the right price.  :)  http://SupersetSolutions.com/

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to