Commit a126ed31 authored by Alex Suykov's avatar Alex Suykov Committed by Thomas Petazzoni
Browse files

rpi-userland: systemd support



[Thomas: use relative path for the symbolic link.]

Signed-off-by: default avatarAlex Suykov <alex.suykov@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 7ee5eb93
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -19,6 +19,13 @@ define RPI_USERLAND_INSTALL_INIT_SYSV
	$(INSTALL) -m 0755 -D package/rpi-userland/S94vcfiled \
		$(TARGET_DIR)/etc/init.d/S94vcfiled
endef
define RPI_USERLAND_INSTALL_INIT_SYSTEMD
	$(INSTALL) -D -m 644 package/rpi-userland/vcfiled.service \
		$(TARGET_DIR)/usr/lib/systemd/system/vcfiled.service
	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
	ln -sf ../../../../usr/lib/systemd/system/vcfiled.service \
		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vcfiled.service
endef
endif

define RPI_USERLAND_POST_TARGET_CLEANUP
+8 −0
Original line number Diff line number Diff line
[Unit]
Description=VideoCore file server daemon

[Service]
ExecStart=/usr/sbin/vcfiled --foreground

[Install]
WantedBy=multi-user.target