Merge pull request #127 from lepz0r/master

Add runit & s6 service
This commit is contained in:
bol-van 2022-11-27 18:15:04 +03:00 committed by GitHub
commit 397987b2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 0 deletions

2
init.d/runit/zapret/finish Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/opt/zapret/init.d/sysv/zapret stop

3
init.d/runit/zapret/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/opt/zapret/init.d/sysv/zapret start
exec chpst -b zapret sleep infinity

2
init.d/s6/zapret/down Normal file
View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
exec /opt/zapret/init.d/sysv/zapret stop

1
init.d/s6/zapret/type Normal file
View File

@ -0,0 +1 @@
oneshot

2
init.d/s6/zapret/up Normal file
View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
exec /opt/zapret/init.d/sysv/zapret start