Date: Wed, 14 Jul 2004 12:37:52 +0200 From: "Cyrille Lefevre" <clefevre-lists@9online.fr> To: "Mike Makonnen" <mtm@identd.net>, <freebsd-rc@freebsd.org> Subject: Re: localpkg script changes Message-ID: <017401c4698e$9ea32120$7890a8c0@dyndns.org> References: <20040713140354.GA1695@rogue.acs-et.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Mike Makonnen" <mtm@identd.net> wrote: > > I was looking at integrating ports rc.d scripts a bit better, and the following is > what I came up with. I would appreciate reviews, tests, etc.. > Index: etc/rc.d/localpkg > =================================================================== [snip] > load_rc_config $name > -run_rc_command "$1" > + > +# We can't use the normal rc.subr(8) start/stop plumbing > +# because we call run_rc_script(), which unsets all the > +# global variables that said plumbing needs. > +# > +case "$1" in > +start|faststart) > + pkg_start > + ;; > +stop|faststop) > + pkg_stop > + ;; > +restart|fastrestart) > + pkg_stop > + pkg_start > + ;; > +esac what about other states, such as rcvar, status and poll ? what for non-standard states, such as reload, etc. Cyrille Lefevre. -- home: mailto:cyrille.lefevre@laposte.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?017401c4698e$9ea32120$7890a8c0>