forked from go-gitea/gitea
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Add button for issue deletion (go-gitea#19032) Fix script compatiable with OpenWrt (go-gitea#19000) Allow users to self-request a PR review (go-gitea#19030) Fix wrong scopes caused by empty scope input (go-gitea#19029) Feature: show issue assignee on project board (go-gitea#15232) bump go deps (go-gitea#19021) Don't show context cancelled errors in attribute reader (go-gitea#19006) Set `rel="nofollow noindex"` on new issue links (go-gitea#19023) update to correct stable version
- Loading branch information
Showing
19 changed files
with
1,064 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
USE_PROCD=1 | ||
|
||
# PROCD_DEBUG=1 | ||
|
||
START=90 | ||
STOP=10 | ||
|
||
PROG=/opt/gitea/gitea | ||
GITEA_WORK_DIR=/opt/gitea | ||
CONF_FILE=$GITEA_WORK_DIR/app.ini | ||
|
||
start_service(){ | ||
procd_open_instance gitea | ||
procd_set_param env GITEA_WORK_DIR=$GITEA_WORK_DIR | ||
procd_set_param env HOME=$GITEA_WORK_DIR | ||
procd_set_param command $PROG web -c $CONF_FILE | ||
procd_set_param file $CONF_FILE | ||
procd_set_param user git | ||
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5} # respawn automatically if something died, be careful if you have an alternative process supervisor | ||
procd_close_instance | ||
} | ||
|
||
start(){ | ||
service_start $PROG | ||
} | ||
|
||
stop(){ | ||
service_stop $PROG | ||
} | ||
|
||
reload(){ | ||
service_reload $PROG | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.