mirror of https://github.com/gogits/gogs.git
afilippov1985
8 years ago
committed by
无闻
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||||
|
#!/sbin/openrc-run |
||||||
|
|
||||||
|
DIR=/home/git/gogs |
||||||
|
USER=git |
||||||
|
PORT=3000 |
||||||
|
|
||||||
|
start_stop_daemon_args="--user ${USER} --chdir ${DIR}" |
||||||
|
command="${DIR}/gogs" |
||||||
|
command_args="web -port ${PORT}" |
||||||
|
command_background=yes |
||||||
|
pidfile=/var/run/gogs.pid |
||||||
|
|
||||||
|
depend() |
||||||
|
{ |
||||||
|
need net |
||||||
|
} |
Loading…
Reference in new issue