All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] [meta-ivi] portmap: Use systemd service type forking instead of oneshot
@ 2013-06-11 15:30 Shakeel, Muhammad
  2013-06-14  2:30 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Shakeel, Muhammad @ 2013-06-11 15:30 UTC (permalink / raw)
  To: holger.behrens, florin.sarbu; +Cc: yocto

From: Muhammad Shakeel <muhammad_shakeel@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.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/3] [meta-ivi] portmap: Use systemd service type forking instead of oneshot
  2013-06-11 15:30 [PATCH 1/3] [meta-ivi] portmap: Use systemd service type forking instead of oneshot Shakeel, Muhammad
@ 2013-06-14  2:30 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2013-06-14  2:30 UTC (permalink / raw)
  To: Shakeel, Muhammad; +Cc: yocto

On Tue, Jun 11, 2013 at 8:30 AM, Shakeel, Muhammad
<muhammad_shakeel@mentor.com> wrote:
> From: Muhammad Shakeel <muhammad_shakeel@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@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-14  2:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 15:30 [PATCH 1/3] [meta-ivi] portmap: Use systemd service type forking instead of oneshot Shakeel, Muhammad
2013-06-14  2:30 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.