[fedfs-utils] [PATCH] contrib: add a systemd service file for rpc.fedfsd
Jeff Layton
jlayton at redhat.com
Wed Nov 9 02:49:49 PST 2011
On Mon, 7 Nov 2011 21:20:52 -0500
Chuck Lever <chuck.lever at oracle.com> wrote:
>
> On Nov 7, 2011, at 9:08 PM, Jeff Layton wrote:
>
> > On Mon, 7 Nov 2011 16:33:48 -0500
> > Chuck Lever <chuck.lever at oracle.com> wrote:
> >
> >>
> >> On Nov 4, 2011, at 8:40 PM, Jeff Layton wrote:
> >>
> >>> On Fri, 4 Nov 2011 19:28:21 -0400
> >>> Chuck Lever <chuck.lever at oracle.com> wrote:
> >>>
> >>>> Hi Jeff-
> >>>>
> >>>> This looks OK, at first glance. I'll drop it into 0.8 after check-in testing.
> >>>>
> >>>> I'm not especially familiar with systemd. Can you explain (just briefly here in e-mail) what the settings in rpcfedfsd.service do? How would I use this file on my Fedora 15 system instead of the contrib/init-scripts/rpcfedfsd script?
> >>>>
> >>>> Maybe we should have a contrib/README to explain what these things are for.
> >>>>
> >>>
> >>> I pretty much "borrowed" it from the example here:
> >>>
> >>> http://0pointer.de/blog/projects/systemd-for-admins-3.html
> >>>
> >>> and it has a description of all the fields.
> >>>
> >>> It works, but we might want to do some tweaking of this file eventually
> >>> -- maybe add a /etc/sysconfig/fedfs file where we can do things like
> >>> set command line arguments, etc...
> >>
> >> My rpcfedfsd init script already looks in /etc/sysconfig/nfs. That can be changed, though. I guess we want fedfs to be rather more independent of NFS.
> >>
> >
> > Yes, I meant to mention that when I looked at the script.
> > /etc/sysconfig/nfs is shipped as part of the nfs-utils package
> > in Fedora and RHEL. We really want a separate file
> > here. /etc/sysconfig/fedfs would be more appropriate.
>
> I can update rpcfedfsd, but do you happen to know what is needed for the new systemd config file to use /etc/sysconfig/fedfs ?
>
Yes, patch resent that will make it source in /etc/sysconfig/fedfs if
it exists prior to starting the daemon. It's also possible to get a lot
more sophisticated with systemd integration here, but I don't think it's
probably worth it for something like rpc.fedfsd.
--
Jeff Layton <jlayton at redhat.com>
More information about the fedfs-utils-devel
mailing list