Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init script gentoo #447

Merged
merged 4 commits into from
Dec 22, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace Gogs to Gitea
  • Loading branch information
lunny committed Dec 22, 2016
commit d908c2f577c2737b247c7febe0e4de2e5443ec13
6 changes: 3 additions & 3 deletions scripts/init/gentoo/gogs → scripts/init/gentoo/gitea
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/sbin/openrc-run

DIR=/home/git/gogs
DIR=/home/git/gitea
USER=git
PORT=3000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why override the app.ini port number?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just cherry-pick, don't know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.


start_stop_daemon_args="--user ${USER} --chdir ${DIR}"
command="${DIR}/gogs"
command="${DIR}/gitea"
command_args="web -port ${PORT}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command_args="web" :)

command_background=yes
pidfile=/var/run/gogs.pid
pidfile=/var/run/gitea.pid

depend()
{
Expand Down