* [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup.
@ 2015-01-11 5:31 Nathaniel Roach
2015-01-11 5:31 ` [Buildroot] [PATCH] postgresql: bump version to 9.4.0 Nathaniel Roach
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Nathaniel Roach @ 2015-01-11 5:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
---
package/bandwidthd/bandwidthd.mk | 10 ++++++++++
package/bandwidthd/bandwidthd.service | 11 +++++++++++
2 files changed, 21 insertions(+)
create mode 100644 package/bandwidthd/bandwidthd.service
diff --git a/package/bandwidthd/bandwidthd.mk b/package/bandwidthd/bandwidthd.mk
index ca991f9..2773490 100644
--- a/package/bandwidthd/bandwidthd.mk
+++ b/package/bandwidthd/bandwidthd.mk
@@ -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))
diff --git a/package/bandwidthd/bandwidthd.service b/package/bandwidthd/bandwidthd.service
new file mode 100644
index 0000000..9c03d42
--- /dev/null
+++ b/package/bandwidthd/bandwidthd.service
@@ -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
--
2.1.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] postgresql: bump version to 9.4.0
2015-01-11 5:31 [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup Nathaniel Roach
@ 2015-01-11 5:31 ` Nathaniel Roach
2015-01-12 11:37 ` Thomas Petazzoni
2015-01-11 5:31 ` [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup Nathaniel Roach
2015-01-11 19:45 ` [Buildroot] [PATCH] bandwidthd: " Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Nathaniel Roach @ 2015-01-11 5:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
---
package/postgresql/postgresql.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
index e53b9dd..6fc9656 100644
--- a/package/postgresql/postgresql.mk
+++ b/package/postgresql/postgresql.mk
@@ -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
--
2.1.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup.
2015-01-11 5:31 [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup Nathaniel Roach
2015-01-11 5:31 ` [Buildroot] [PATCH] postgresql: bump version to 9.4.0 Nathaniel Roach
@ 2015-01-11 5:31 ` Nathaniel Roach
2015-01-12 21:22 ` Thomas Petazzoni
2015-01-11 19:45 ` [Buildroot] [PATCH] bandwidthd: " Thomas Petazzoni
2 siblings, 1 reply; 6+ messages in thread
From: Nathaniel Roach @ 2015-01-11 5:31 UTC (permalink / raw)
To: buildroot
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 <nroach44@gmail.com>
---
package/bind/bind.mk | 9 +++++++++
package/bind/named.service | 12 ++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 package/bind/named.service
diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index 983fa20..a98a4c4 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -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
diff --git a/package/bind/named.service b/package/bind/named.service
new file mode 100644
index 0000000..be0158b
--- /dev/null
+++ b/package/bind/named.service
@@ -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
--
2.1.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup.
2015-01-11 5:31 [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup Nathaniel Roach
2015-01-11 5:31 ` [Buildroot] [PATCH] postgresql: bump version to 9.4.0 Nathaniel Roach
2015-01-11 5:31 ` [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup Nathaniel Roach
@ 2015-01-11 19:45 ` Thomas Petazzoni
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-01-11 19:45 UTC (permalink / raw)
To: buildroot
Dear Nathaniel Roach,
On Sun, 11 Jan 2015 13:31:34 +0800, Nathaniel Roach wrote:
> Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
> ---
> 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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] postgresql: bump version to 9.4.0
2015-01-11 5:31 ` [Buildroot] [PATCH] postgresql: bump version to 9.4.0 Nathaniel Roach
@ 2015-01-12 11:37 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-01-12 11:37 UTC (permalink / raw)
To: buildroot
Dear Nathaniel Roach,
On Sun, 11 Jan 2015 13:31:35 +0800, Nathaniel Roach wrote:
> Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
> ---
> package/postgresql/postgresql.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup.
2015-01-11 5:31 ` [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup Nathaniel Roach
@ 2015-01-12 21:22 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-01-12 21:22 UTC (permalink / raw)
To: buildroot
Dear Nathaniel Roach,
On Sun, 11 Jan 2015 13:31:36 +0800, Nathaniel Roach wrote:
> 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 <nroach44@gmail.com>
> ---
> 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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-01-12 21:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 5:31 [Buildroot] [PATCH] bandwidthd: Add systemd unit file and install it to run at startup Nathaniel Roach
2015-01-11 5:31 ` [Buildroot] [PATCH] postgresql: bump version to 9.4.0 Nathaniel Roach
2015-01-12 11:37 ` Thomas Petazzoni
2015-01-11 5:31 ` [Buildroot] [PATCH] bind: Add systemd unit file and install it to run at startup Nathaniel Roach
2015-01-12 21:22 ` Thomas Petazzoni
2015-01-11 19:45 ` [Buildroot] [PATCH] bandwidthd: " Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.