[PATCH xdm] Support reloading xdm through systemd.

Julien Cristau jcristau at debian.org
Fri Dec 30 11:35:29 PST 2011


On Wed, Dec 28, 2011 at 16:37:34 +0100, Michał Górny wrote:

> Signed-off-by: Michał Górny <mgorny at gentoo.org>
> ---
>  xdm.service.in |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/xdm.service.in b/xdm.service.in
> index e782dd9..cf703c6 100644
> --- a/xdm.service.in
> +++ b/xdm.service.in
> @@ -4,6 +4,7 @@ After=systemd-user-sessions.service
>  
>  [Service]
>  ExecStart=BINDIR/xdm -nodaemon
> +ExecReload=/bin/kill -HUP $MAINPID
>  Type=notify
>  NotifyAccess=all
>  
So systemd goes out of its way to not run shell scripts if possible, but
it has no way to just use kill(2) to signal a daemon instead of
fork+exec /bin/kill?

Cheers,
Julien


More information about the xorg-devel mailing list