From 5929a1ea6b9e551965fde57e4e83b41d05b901c4 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 4 Apr 2020 22:03:00 +0200 Subject: [PATCH] Add OpenRC service unit --- etc/init.d/spoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 etc/init.d/spoc diff --git a/etc/init.d/spoc b/etc/init.d/spoc new file mode 100755 index 0000000..dbd78f0 --- /dev/null +++ b/etc/init.d/spoc @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +description="SPOC" + +depend() { + need localmount sysfs cgroups + after firewall net +} + +start() { + /usr/bin/spoc-app autostart +} + +stop() { + /usr/bin/spoc-app stop-all +}