Skip to contentSkip to conversation

boinc: replace systemd script

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boinc: replace systemd script

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

---
 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
package/boinc/boinc-client.service deleted +0 -10
deleted file mode 100644
index 9de940e938..0000000000
@@ -1,10 +0,0 @@
-[Unit]
-Description=BOINC client
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/boinc_client
-Restart=always
-
-[Install]
-WantedBy=multi-user.target
package/boinc/boinc.mk +4 -2
index aa32e6965a..61931aed65 100644
@@ -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
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 boinc: replace systemd script

Hello,

Quoted 10 lines · Fabrice Fontaine

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

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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com