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

supervisor: systemd support



Running supervisord under systemd sounds wrong, but it is possible
and probably makes sense in some cases.

[Thomas: use relative symbolic link instead of an absolute symbolic
link.]

Signed-off-by: default avatarAlex Suykov <alex.suykov@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 40f8062a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -22,4 +22,12 @@ define SUPERVISOR_INSTALL_INIT_SYSV
		$(TARGET_DIR)/etc/init.d/S99supervisord
endef

define SUPERVISOR_INSTALL_INIT_SYSTEMD
	$(INSTALL) -D -m 644 package/supervisor/supervisord.service \
		$(TARGET_DIR)/usr/lib/systemd/system/supervisord.service
	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
	ln -sf ../../../../usr/lib/systemd/system/supervisord.service \
		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/supervisord.service
endef

$(eval $(python-package))
+10 −0
Original line number Diff line number Diff line
[Unit]
Description=Process Control System
After=syslog.target

[Service]
ExecStart=/usr/bin/supervisord -n
Restart=always

[Install]
WantedBy=multi-user.target