diff options
author | Andreas Schneider <asn@samba.org> | 2012-10-10 11:30:15 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2012-10-12 09:22:05 +0200 |
commit | 8bd3ada2bb3d67f3fa8499e1b2f8450b12aba45e (patch) | |
tree | d4d4a6059e14a6a3952a6444a235feb07cfe782f /packaging | |
parent | 5881b1ed197a15c235405df19b31afe69c8e0e78 (diff) | |
download | samba-8bd3ada2bb3d67f3fa8499e1b2f8450b12aba45e.tar.gz |
packaging: Add support for reloading systemd services.
Signed-off-by: Andreas Schneider <asn@samba.org>
Fix bug #9280 - Add support for reloading the daemons using systemctl reload.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/systemd/nmb.service | 1 | ||||
-rw-r--r-- | packaging/systemd/samba.service | 1 | ||||
-rw-r--r-- | packaging/systemd/smb.service | 1 | ||||
-rw-r--r-- | packaging/systemd/winbind.service | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service index a2ecd22d59c..e5e81a1fc74 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 d2db18c3629..e2878d1a5e1 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 70d98420db6..d0d945aae79 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 9ce1b520419..eff266f0d83 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 |