Commit Diff


commit - 82e467b51dcbb66ef0980460f659d05a8175a584
commit + fd06206184a64e98a93c78572986f4a46fabfe50
blob - /dev/null
blob + 44381f06475b5fc1ff3e6cec8e61b3b7a17799b7 (mode 644)
--- /dev/null
+++ examples/openbsd/rc.d/vostok
@@ -0,0 +1,12 @@
+#!/bin/ksh
+daemon_args="-a <IPv4_ADDRESS> -k <PATH_TO_key> -c <PATH_TO_crt> -f <PATH_TO_DIR>"
+daemon_user="_vostok"
+daemon="/<PATH_TO_BUILDED>/vostok ${daemon_args}"
+
+. /etc/rc.d/rc.subr
+
+pexp="${daemon}.*"
+rc_reload=NO
+rc_bg=YES
+
+rc_cmd $1