bandwidthd: Add systemd unit file and install it to run at startup.
PATCH 1/1 bandwidthd: Add systemd unit file and install it to run at startup.
Signed-off-by Nathaniel Roach <[email protected]>
--- package/bandwidthd/bandwidthd.mk | 10 ++++++++++ package/bandwidthd/bandwidthd.service | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/bandwidthd/bandwidthd.service
package/bandwidthd/bandwidthd.mk +10 -0
@@ -31,4 +31,14 @@ else BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false endif +define BANDWIDTHD_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \ + $(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service + + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + + ln -sf /usr/lib/systemd/system/bandwidthd.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bandwidthd.service +endef + $(eval $(autotools-package))
package/bandwidthd/bandwidthd.service new file +11 -0
@@ -0,0 +1,11 @@ +[Unit] +Description=Bandwidth usage monitor and reporter +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/bandwidthd +PIDFile=/var/run/bandwidthd.pid + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.1.4
PATCH 1/1 postgresql: bump version to 9.4.0
Signed-off-by Nathaniel Roach <[email protected]>
--- package/postgresql/postgresql.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/postgresql/postgresql.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -POSTGRESQL_VERSION = 9.3.5 +POSTGRESQL_VERSION = 9.4.0 POSTGRESQL_SOURCE = postgresql-$(POSTGRESQL_VERSION).tar.bz2 POSTGRESQL_SITE = http://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION) POSTGRESQL_LICENSE = PostgreSQL
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 postgresql: bump version to 9.4.0
Dear Nathaniel Roach,
Quoted 4 lines · Nathaniel Roach
Signed-off-by Nathaniel Roach <[email protected]>--- package/postgresql/postgresql.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 bind: Add systemd unit file and install it to run at startup.
In reply to Nathaniel RoachThe unit file is taken from debian, but tested working. We'll call it named.service to match the sysV initscript.
Signed-off-by Nathaniel Roach <[email protected]>
--- package/bind/bind.mk | 9 +++++++++ package/bind/named.service | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/bind/named.service
package/bind/bind.mk +9 -0
@@ -82,6 +82,15 @@ define BIND_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D package/bind/S81named \ $(TARGET_DIR)/etc/init.d/S81named endef +define BIND_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 package/bind/named.service \ + $(TARGET_DIR)/usr/lib/systemd/system/named.service + + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + + ln -sf /usr/lib/systemd/system/named.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/named.service +endef else BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_SERVER endif
package/bind/named.service new file +12 -0
@@ -0,0 +1,12 @@ +[Unit] +Description=BIND Domain Name Server +Documentation=man:named(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/named -f -u named +ExecReload=/usr/sbin/rndc reload +ExecStop=/usr/sbin/rndc stop + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 bind: Add systemd unit file and install it to run at startup.
Dear Nathaniel Roach,
Quoted 9 lines · Nathaniel Roach
The unit file is taken from debian, but tested working. We'll call it named.service to match the sysV initscript.
Signed-off-by Nathaniel Roach <[email protected]>--- package/bind/bind.mk | 9 +++++++++ package/bind/named.service | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/bind/named.service
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Thomas Petazzoni
AppliedPATCH 1/1 bandwidthd: Add systemd unit file and install it to run at startup.
In reply to Nathaniel RoachDear Nathaniel Roach,
Quoted 6 lines · Nathaniel Roach
Signed-off-by Nathaniel Roach <[email protected]>--- package/bandwidthd/bandwidthd.mk | 10 ++++++++++ package/bandwidthd/bandwidthd.service | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/bandwidthd/bandwidthd.service
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com