[yocto] [PATCH 1/3] [meta-ivi] portmap: Use systemd service type forking instead of oneshot

Khem Raj raj.khem at gmail.com
Thu Jun 13 19:30:32 PDT 2013


On Tue, Jun 11, 2013 at 8:30 AM, Shakeel, Muhammad
<muhammad_shakeel at mentor.com> wrote:
> From: Muhammad Shakeel <muhammad_shakeel at mentor.com>
>
> portmap is a resident program and we want to start it in background.
> With service type 'forking' systemd knows that the executable is a daemon.
> Although in this case 'oneshot' + 'RemainAfterExit=yes' works but it
> is intended for non-resident programs.
>

I wonder why is rpcbind not replacing portmap for ivi ?


> Signed-off-by: Muhammad Shakeel <muhammad_shakeel at mentor.com>
> ---
>  .../portmap/portmap/portmap.service                |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-connectivity/portmap/portmap/portmap.service b/recipes-connectivity/portmap/portmap/portmap.service
> index 7f9bc94..a76754f 100644
> --- a/recipes-connectivity/portmap/portmap/portmap.service
> +++ b/recipes-connectivity/portmap/portmap/portmap.service
> @@ -3,9 +3,9 @@ Description=Portmap
>  After=connman.service
>
>  [Service]
> -Type=oneshot
> +Type=forking
>  ExecStart=/sbin/portmap -l
> -RemainAfterExit=yes
> +PIDFile=/var/run/portmap.pid
>
>  [Install]
>  WantedBy=multi-user.target
> --
> 1.7.9.5
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list