Add OpenRC service unit
This commit is contained in:
parent
4e7921e85d
commit
5929a1ea6b
16
etc/init.d/spoc
Executable file
16
etc/init.d/spoc
Executable file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user