dbus: only install initscript for sysV targets
PATCH 1/2 dbus: only install initscript for sysV targets
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/dbus/dbus.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/dbus/dbus.mk +5 -1
@@ -75,11 +75,15 @@ define DBUS_INSTALL_TARGET_FIXUP mkdir -p $(TARGET_DIR)/var/lib rm -rf $(TARGET_DIR)/var/lib/dbus ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus - $(INSTALL) -m 0755 -D package/dbus/S30dbus $(TARGET_DIR)/etc/init.d/S30dbus endef DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_INSTALL_TARGET_FIXUP +define DBUS_INSTALL_INIT_SYSV + $(INSTALL) -m 0755 -D package/dbus/S30dbus \ + $(TARGET_DIR)/etc/init.d/S30dbus +endef + HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat HOST_DBUS_CONF_OPT = \ --with-dbus-user=dbus \
Signature · 1 line
1.8.3.2
PATCH 2/2 openssh: add systemd unit file
And only install sysV initscript when appropiate.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/openssh/openssh.mk | 12 ++++++++++-- package/openssh/sshd.service | 11 +++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 package/openssh/sshd.service
package/openssh/openssh.mk +10 -2
@@ -17,8 +17,16 @@ 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 + 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
package/openssh/sshd.service new file +11 -0
@@ -0,0 +1,11 @@ +[Unit] +Description=OpenSSH server daemon +After=syslog.target network.target auditd.service + +[Service] +ExecStartPre=/usr/bin/ssh-keygen -A +ExecStart=/usr/sbin/sshd -D -e +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target
Signature · 1 line
1.8.3.2
PATCH 1/2 dbus: only install initscript for sysV targets
In reply to Gustavo ZacariasQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Signed-off-by Gustavo Zacarias <[email protected]>--- package/dbus/dbus.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard