* [Buildroot] [PATCH 1/1] boinc: replace systemd script
@ 2018-04-28 14:24 Fabrice Fontaine
2018-04-28 17:03 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-04-28 14:24 UTC (permalink / raw)
To: buildroot
Remove buildroot systemd script to use the script embedded by boinc
since version 7.9.1.
Set BOINC_USERS to be able to use this script
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/boinc/boinc-client.service | 10 ----------
package/boinc/boinc.mk | 6 ++++--
2 files changed, 4 insertions(+), 12 deletions(-)
delete mode 100644 package/boinc/boinc-client.service
diff --git a/package/boinc/boinc-client.service b/package/boinc/boinc-client.service
deleted file mode 100644
index 9de940e938..0000000000
--- a/package/boinc/boinc-client.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=BOINC client
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/boinc_client
-Restart=always
-
-[Install]
-WantedBy=multi-user.target
diff --git a/package/boinc/boinc.mk b/package/boinc/boinc.mk
index aa32e6965a..61931aed65 100644
--- a/package/boinc/boinc.mk
+++ b/package/boinc/boinc.mk
@@ -45,14 +45,16 @@ endef
BOINC_POST_INSTALL_TARGET_HOOKS += BOINC_REMOVE_UNNEEDED_FILE
+define BOINC_USERS
+ boinc -1 boinc -1 * /var/lib/boinc - BOINC user
+endef
+
define BOINC_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/boinc/S99boinc-client \
$(TARGET_DIR)/etc/init.d/S99boinc-client
endef
define BOINC_INSTALL_INIT_SYSTEMD
- $(INSTALL) -D -m 644 package/boinc/boinc-client.service \
- $(TARGET_DIR)/usr/lib/systemd/system/boinc-client.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../usr/lib/systemd/system/boinc-client.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/boinc-client.service
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] boinc: replace systemd script
2018-04-28 14:24 [Buildroot] [PATCH 1/1] boinc: replace systemd script Fabrice Fontaine
@ 2018-04-28 17:03 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 17:03 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 28 Apr 2018 16:24:17 +0200, Fabrice Fontaine wrote:
> Remove buildroot systemd script to use the script embedded by boinc
> since version 7.9.1.
> Set BOINC_USERS to be able to use this script
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/boinc/boinc-client.service | 10 ----------
> package/boinc/boinc.mk | 6 ++++--
> 2 files changed, 4 insertions(+), 12 deletions(-)
> delete mode 100644 package/boinc/boinc-client.service
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-28 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-28 14:24 [Buildroot] [PATCH 1/1] boinc: replace systemd script Fabrice Fontaine
2018-04-28 17:03 ` 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.