From 49959cffc5717764cc4a5a654eab63bfe5f21603 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 10 Oct 2012 11:30:15 +0200 Subject: packaging: Add support for reloading systemd services. --- packaging/systemd/nmb.service | 1 + packaging/systemd/samba.service | 1 + packaging/systemd/smb.service | 1 + packaging/systemd/winbind.service | 1 + 4 files changed, 4 insertions(+) (limited to 'packaging') diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service index a2ecd22d59..e5e81a1fc7 100644 --- a/packaging/systemd/nmb.service +++ b/packaging/systemd/nmb.service @@ -7,6 +7,7 @@ Type=forking PIDFile=/run/nmbd.pid EnvironmentFile=-/etc/sysconfig/samba ExecStart=/usr/sbin/nmbd $NMBDOPTIONS +ExecReload=/usr/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/packaging/systemd/samba.service b/packaging/systemd/samba.service index d2db18c362..e2878d1a5e 100644 --- a/packaging/systemd/samba.service +++ b/packaging/systemd/samba.service @@ -8,6 +8,7 @@ PIDFile=/run/samba.pid LimitNOFILE=16384 EnvironmentFile=-/etc/sysconfig/samba ExecStart=/usr/sbin/samba $SAMBAOPTIONS +ExecReload=/usr/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/packaging/systemd/smb.service b/packaging/systemd/smb.service index 70d98420db..d0d945aae7 100644 --- a/packaging/systemd/smb.service +++ b/packaging/systemd/smb.service @@ -8,6 +8,7 @@ PIDFile=/run/smbd.pid LimitNOFILE=16384 EnvironmentFile=-/etc/sysconfig/samba ExecStart=/usr/sbin/smbd $SMBDOPTIONS +ExecReload=/usr/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/packaging/systemd/winbind.service b/packaging/systemd/winbind.service index 9ce1b52041..eff266f0d8 100644 --- a/packaging/systemd/winbind.service +++ b/packaging/systemd/winbind.service @@ -7,6 +7,7 @@ Type=forking PIDFile=/run/winbindd.pid EnvironmentFile=-/etc/sysconfig/samba ExecStart=/usr/sbin/winbindd "$WINBINDOPTIONS" +ExecReload=/usr/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target -- cgit