Skip to contentSkip to conversation

bandwidthd: Add systemd unit file and install it to run at startup.

PATCH New Nathaniel Roach 2 participants 6 messages Jan 11, 2015 – Jan 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bandwidthd: Add systemd unit file and install it to run at startup.

---
 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
index ca991f9..2773490 100644
@@ -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
new file mode 100644
index 0000000..9c03d42
@@ -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
#1 lore raw

PATCH 1/1 postgresql: bump version to 9.4.0

---
 package/postgresql/postgresql.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/postgresql/postgresql.mk +1 -1
index e53b9dd..6fc9656 100644
@@ -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
#2 lore raw

PATCH 1/1 postgresql: bump version to 9.4.0

Dear Nathaniel Roach,

Quoted 4 lines · Nathaniel Roach
---
 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
#3 lore raw

PATCH 1/1 bind: Add systemd unit file and install it to run at startup.

In reply to Nathaniel Roach

The unit file is taken from debian, but tested working. We'll call it named.service to match the sysV initscript.

---
 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
index 983fa20..a98a4c4 100644
@@ -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
new file mode 100644
index 0000000..be0158b
@@ -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
#4 lore raw

PATCH 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.

---
 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
#5 lore raw

PATCH 1/1 bandwidthd: Add systemd unit file and install it to run at startup.

In reply to Nathaniel Roach

Dear Nathaniel Roach,

Quoted 6 lines · Nathaniel Roach
---
 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