add example rc scripts for OpenBSD and FreeBSD

This commit is contained in:
Aaron Bieber
2018-02-28 07:35:23 -07:00
committed by Zlatko Čalušić
parent 2209f1437e
commit dfe9755ed0
2 changed files with 41 additions and 0 deletions

14
examples/bsd/openbsd Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/ksh
#
# $OpenBSD: $
daemon="/usr/local/bin/rest-server"
daemon_flags="--path /var/restic"
daemon_user="_restic"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
rc_cmd $1