Commit Diff
--- /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