openssh: add systemd unit file
PATCH v2 1/1 openssh: add systemd unit file
And only install sysV-style script when appropiate.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/openssh/openssh.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
package/openssh/openssh.mk +11 -2
@@ -17,8 +17,17 @@ OPENSSH_DEPENDENCIES += linux-pam OPENSSH_CONF_OPT += --with-pam endif -define OPENSSH_INSTALL_INITSCRIPT - $(INSTALL) -D -m 755 package/openssh/S50sshd $(TARGET_DIR)/etc/init.d/S50sshd +define OPENSSH_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 755 package/openssh/sshd.service \ + $(TARGET_DIR)/etc/systemd/system/sshd.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../sshd.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service +endef + +define OPENSSH_INSTALL_INIT_SYSV + $(INSTALL) -D -m 755 package/openssh/S50sshd \ + $(TARGET_DIR)/etc/init.d/S50sshd endef OPENSSH_POST_INSTALL_TARGET_HOOKS += OPENSSH_INSTALL_INITSCRIPT
Signature · 1 line
1.8.3.2
PATCH v2 1/1 openssh: add systemd unit file
Dear Gustavo Zacarias,
Quoted 6 lines · Gustavo Zacarias
And only install sysV-style script when appropiate.
Signed-off-by Gustavo Zacarias <[email protected]>--- package/openssh/openssh.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
In this v2, you're no longer adding the systemd unit file.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com