mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] busybox: add crond systemd service
@ 2015-07-08 18:25 Albert Antony
  2015-07-14 12:36 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Albert Antony @ 2015-07-08 18:25 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1737 bytes --]

Signed-off-by: Albert Antony <albert@newtec.dk>
---
 projectroot/lib/systemd/system/crond.service | 11 +++++++++++
 rules/busybox.in                             |  6 ++++++
 rules/busybox.make                           |  7 +++++++
 3 files changed, 24 insertions(+)
 create mode 100644 projectroot/lib/systemd/system/crond.service

diff --git a/projectroot/lib/systemd/system/crond.service
b/projectroot/lib/systemd/system/crond.service
new file mode 100644
index 0000000..b650ae5
--- /dev/null
+++ b/projectroot/lib/systemd/system/crond.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Cron Daemon
+After=syslog.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/crond -b
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rules/busybox.in b/rules/busybox.in
index 7a41e7c..7bcdc94 100644
--- a/rules/busybox.in
+++ b/rules/busybox.in
@@ -90,6 +90,12 @@ config BUSYBOX_TELNETD_SYSTEMD_UNIT
  depends on BUSYBOX_TELNETD && SYSTEMD
  prompt "telnetd systemd service files"

+config BUSYBOX_CROND_SYSTEMD_UNIT
+ bool
+ default y
+ depends on BUSYBOX_CROND && SYSTEMD
+ prompt "crond systemd service files"
+
 comment "---"

 source "config/busybox/Config.in"
diff --git a/rules/busybox.make b/rules/busybox.make
index 60191c2..d2c9990 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -224,6 +224,13 @@ ifdef PTXCONF_BUSYBOX_TELNETD_SYSTEMD_UNIT
  /lib/systemd/system/sockets.target.wants/telnetd.socket)
 endif

+ifdef PTXCONF_BUSYBOX_CROND_SYSTEMD_UNIT
+ @$(call install_alternative, busybox, 0, 0, 0644, \
+ /lib/systemd/system/crond.service)
+ @$(call install_link, busybox, ../crond.service, \
+ /lib/systemd/system/multi-user.target.wants/crond.service)
+endif
+
 # #
 # # config files
 # #
-- 
2.0.0

[-- Attachment #1.2: Type: text/html, Size: 3371 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [ptxdist]  [PATCH] busybox: add crond systemd service
@ 2015-07-08 18:27 Albert Antony
  0 siblings, 0 replies; 5+ messages in thread
From: Albert Antony @ 2015-07-08 18:27 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1737 bytes --]

Signed-off-by: Albert Antony <albert@newtec.dk>
---
 projectroot/lib/systemd/system/crond.service | 11 +++++++++++
 rules/busybox.in                             |  6 ++++++
 rules/busybox.make                           |  7 +++++++
 3 files changed, 24 insertions(+)
 create mode 100644 projectroot/lib/systemd/system/crond.service

diff --git a/projectroot/lib/systemd/system/crond.service
b/projectroot/lib/systemd/system/crond.service
new file mode 100644
index 0000000..b650ae5
--- /dev/null
+++ b/projectroot/lib/systemd/system/crond.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Cron Daemon
+After=syslog.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/crond -b
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rules/busybox.in b/rules/busybox.in
index 7a41e7c..7bcdc94 100644
--- a/rules/busybox.in
+++ b/rules/busybox.in
@@ -90,6 +90,12 @@ config BUSYBOX_TELNETD_SYSTEMD_UNIT
  depends on BUSYBOX_TELNETD && SYSTEMD
  prompt "telnetd systemd service files"

+config BUSYBOX_CROND_SYSTEMD_UNIT
+ bool
+ default y
+ depends on BUSYBOX_CROND && SYSTEMD
+ prompt "crond systemd service files"
+
 comment "---"

 source "config/busybox/Config.in"
diff --git a/rules/busybox.make b/rules/busybox.make
index 60191c2..d2c9990 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -224,6 +224,13 @@ ifdef PTXCONF_BUSYBOX_TELNETD_SYSTEMD_UNIT
  /lib/systemd/system/sockets.target.wants/telnetd.socket)
 endif

+ifdef PTXCONF_BUSYBOX_CROND_SYSTEMD_UNIT
+ @$(call install_alternative, busybox, 0, 0, 0644, \
+ /lib/systemd/system/crond.service)
+ @$(call install_link, busybox, ../crond.service, \
+ /lib/systemd/system/multi-user.target.wants/crond.service)
+endif
+
 # #
 # # config files
 # #
-- 
2.0.0

[-- Attachment #1.2: Type: text/html, Size: 3526 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [ptxdist]  [PATCH] busybox: add crond systemd service
@ 2015-07-15 12:56 Albert Antony
  2015-07-17  8:25 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Albert Antony @ 2015-07-15 12:56 UTC (permalink / raw)
  To: ptxdist; +Cc: Albert Antony

Hopefully the tabs are preserved in this version of the patch ;)

Signed-off-by: Albert Antony <albert@newtec.dk>
---
 projectroot/lib/systemd/system/crond.service | 11 +++++++++++
 rules/busybox.in                             |  6 ++++++
 rules/busybox.make                           |  7 +++++++
 3 files changed, 24 insertions(+)
 create mode 100644 projectroot/lib/systemd/system/crond.service

diff --git a/projectroot/lib/systemd/system/crond.service b/projectroot/lib/systemd/system/crond.service
new file mode 100644
index 0000000..b650ae5
--- /dev/null
+++ b/projectroot/lib/systemd/system/crond.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Cron Daemon
+After=syslog.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/crond -b
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rules/busybox.in b/rules/busybox.in
index 7a41e7c..7bcdc94 100644
--- a/rules/busybox.in
+++ b/rules/busybox.in
@@ -90,6 +90,12 @@ config BUSYBOX_TELNETD_SYSTEMD_UNIT
 	depends on BUSYBOX_TELNETD && SYSTEMD
 	prompt "telnetd systemd service files"
 
+config BUSYBOX_CROND_SYSTEMD_UNIT
+	bool
+	default y
+	depends on BUSYBOX_CROND && SYSTEMD
+	prompt "crond systemd service files"
+
 comment "---"
 
 source "config/busybox/Config.in"
diff --git a/rules/busybox.make b/rules/busybox.make
index 60191c2..d2c9990 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -224,6 +224,13 @@ ifdef PTXCONF_BUSYBOX_TELNETD_SYSTEMD_UNIT
 		/lib/systemd/system/sockets.target.wants/telnetd.socket)
 endif
 
+ifdef PTXCONF_BUSYBOX_CROND_SYSTEMD_UNIT
+	@$(call install_alternative, busybox, 0, 0, 0644, \
+		/lib/systemd/system/crond.service)
+	@$(call install_link, busybox, ../crond.service, \
+		/lib/systemd/system/multi-user.target.wants/crond.service)
+endif
+
 #	#
 #	# config files
 #	#
-- 
2.0.0


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-17  6:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 18:25 [ptxdist] [PATCH] busybox: add crond systemd service Albert Antony
2015-07-14 12:36 ` Michael Olbrich
2015-07-08 18:27 Albert Antony
2015-07-15 12:56 Albert Antony
2015-07-17  8:25 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox