浏览代码

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 7 年之前
父节点
当前提交
b14aea4eb1
共有 2 个文件被更改,包括 4 次插入12 次删除
  1. 0 10
      package/boinc/boinc-client.service
  2. 4 2
      package/boinc/boinc.mk

+ 0 - 10
package/boinc/boinc-client.service

@@ -1,10 +0,0 @@
-[Unit]
-Description=BOINC client
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/boinc_client
-Restart=always
-
-[Install]
-WantedBy=multi-user.target

+ 4 - 2
package/boinc/boinc.mk

@@ -44,14 +44,16 @@ endef
 
 
 BOINC_POST_INSTALL_TARGET_HOOKS += BOINC_REMOVE_UNNEEDED_FILE
 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
 define BOINC_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 0755 package/boinc/S99boinc-client \
 	$(INSTALL) -D -m 0755 package/boinc/S99boinc-client \
 		$(TARGET_DIR)/etc/init.d/S99boinc-client
 		$(TARGET_DIR)/etc/init.d/S99boinc-client
 endef
 endef
 
 
 define BOINC_INSTALL_INIT_SYSTEMD
 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
 	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
 	ln -sf ../../../../usr/lib/systemd/system/boinc-client.service \
 	ln -sf ../../../../usr/lib/systemd/system/boinc-client.service \
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/boinc-client.service
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/boinc-client.service