Menu

#36 BSD rc script and Install Notes

1.0
closed
None
2016-04-25
2014-04-19
No

Submit patch to Daemon::Control to add BSD rc script headers:

# PROVIDE: netdiscoweb
# REQUIRE: DAEMON
# BEFORE:  LOGIN
# KEYWORD: shutdown

http://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html

p5-DBD-Pg (pulls in postgresl90-client)
postgresl90-server
net-snmp

pw useradd netdisco -N -m -s /bin/sh -w no

/usr/local/etc/rc.d/postgresql initdb
/usr/local/etc/rc.d/postgresql start
then add user

Discussion

  • Oliver Gorwits

    Oliver Gorwits - 2014-04-19
    • summary: BSD rc script headers --> BSD rc script and Install Notes
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,8 +1,22 @@
     Submit patch to Daemon::Control to add BSD rc script headers:
    
    +~~~~
     # PROVIDE: netdiscoweb
     # REQUIRE: DAEMON
     # BEFORE:  LOGIN
     # KEYWORD: shutdown
    +~~~~
    
     http://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html
    +
    +~~~~
    +p5-DBD-Pg (pulls in postgresl90-client)
    +postgresl90-server
    +net-snmp
    +
    +pw useradd netdisco -N -m -s /bin/sh -w no
    +
    +/usr/local/etc/rc.d/postgresql initdb
    +/usr/local/etc/rc.d/postgresql start
    +then add user
    +~~~~
    
     
  • Oliver Gorwits

    Oliver Gorwits - 2014-08-02

    Hello,
    there is a bug on the rc.d file for FreeBSD.
    You missed to add this line in the rc.d/netdisco:
    rcvar="netdisco_enable"
    Without this netdisco starts everytime whereas it's not necessarily enabled.

     
  • Geoffroy

    Geoffroy - 2014-11-19

    I wrote such a script, and a set of ports for use in FreeBSD. Please take a look as I'd like to submit them soon for inclusion in the ports tree

    http://dgeo.perso.ec-m.fr/ports/

    Features of the port:

    • add/use a 'netdisco' user automatically (already registered in UIDs)
    • starts after postgresql (but doesn't force postgresql version, current is 9.2 and will surely change again
    • allows to run daemon and/or web based on rc.conf vars
    • integrates with freebsd directory layout

    I'm not perl expert, and worked around local::lib things to use port's version of libraries (adding them if needed). Is there a simple way to not use it in the code ?

    disclaimer: I already maintain netdisco 1 port there since some years and willing to continue if you don't object :)

    @all: thank you for this great tool and congratulation for netdisco2 !

     

    Last edit: Geoffroy 2014-11-19
  • Oliver Gorwits

    Oliver Gorwits - 2014-12-26
    • status: new --> fixed
    • assigned_to: Oliver Gorwits
     
  • Oliver Gorwits

    Oliver Gorwits - 2014-12-26

    Hi Geoffroy,

    The page at http://dgeo.perso.ec-m.fr/ports/ is no longer available :-(

    I'll close this ticket as I've included the documentation I can, so far, in Netdisco. If you can dig out your Netdisco 2 port then please let me know.

    regards,
    oliver.

     
  • Geoffroy

    Geoffroy - 2014-12-26

    Oups, it's available again (and up-to-date) !

    I still plan to submit all of this…

    @olly_g: What do you think of adding an option to skip local::lib for packages use (dependencies are then managed via package system) ? Or do you prefer to limit installs to the documented way (in this case adding a package in freebsd may not make sense…)

    Thank you !

     

    Last edit: Geoffroy 2014-12-26
  • Oliver Gorwits

    Oliver Gorwits - 2014-12-26
    • status: fixed --> taken
     
  • Oliver Gorwits

    Oliver Gorwits - 2015-01-24

    Ticket moved from /p/netdisco/netdisco2/101/

     
  • Geoffroy

    Geoffroy - 2016-04-23

    Just to add that netdisco2 is in freebsd's ports since march 2015, this could be closed :)

    http://www.freshports.org/net-mgmt/netdisco

     
  • Oliver Gorwits

    Oliver Gorwits - 2016-04-25
    • status: taken --> closed
    • Milestone: --> 1.0
     
  • Oliver Gorwits

    Oliver Gorwits - 2016-04-25

    Agreed. Now in BSD ports system so closing. Many thanks!

     
MongoDB Logo MongoDB