code.gitea.io/gitea@v1.21.7/contrib/init/openbsd/gitea (about)

     1  #!/bin/sh
     2  #
     3  # $OpenBSD$
     4  
     5  daemon="/usr/local/bin/gitea"
     6  daemon_user="git"
     7  daemon_flags="web -c /etc/gitea/app.ini"
     8  
     9  gitea_directory="/var/lib/gitea"
    10  
    11  rc_bg=YES
    12  
    13  . /etc/rc.d/rc.subr
    14  
    15  rc_start() {
    16  	${rcexec} "cd ${gitea_directory}; ${daemon} ${daemon_flags} ${_bg}"
    17  }
    18  
    19  rc_cmd $1