-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
|
||
Lastly start and enable gitea at boot: | ||
```sudo systemctl start gitea``` | ||
```sudo systemctl enable gitea``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you enable the service first and then start it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't matter in systemd
```mkdir /home/git/gitea/log/supervisor``` | ||
|
||
Open supervisor config file in vi/vim/nano etc. | ||
```sudo vim /etc/supervisor/supervisord.conf``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid markdown. ``` should always be on their own rows
|
||
Lastly start and enable gitea at boot: | ||
```sudo systemctl start gitea``` | ||
```sudo systemctl enable gitea``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't matter in systemd
```sudo systemctl enable supervisor``` | ||
|
||
|
||
#### Using systemd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since systemd is the init-system of choice in Ubuntu this section should be above "Using supervisor" IMO
# repos with lots of files and get an HTTP error 500 because | ||
# of that | ||
### | ||
LimitMEMLOCK=infinity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment out the Limits, as we already do in the contrib folder. Actually we could just link to that file.
```sudo vim /etc/supervisor/supervisord.conf``` | ||
|
||
And append the following code at the end of the file, [reference](https://github.com/go-gitea/gitea/blob/master/contrib/supervisor/gitea): | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just link to the contrib-file: https://github.com/go-gitea/gitea/blob/master/contrib/supervisor/gitea
Please review. |
Btw where it suppose to sit on the site? |
It would end up under https://docs.gitea.io/en-us/linux-service/. |
``` | ||
|
||
Add the following code to the file, [https://github.com/go-gitea/gitea/blob/master/contrib/systemd/gitea.service](https://github.com/go-gitea/gitea/blob/master/contrib/systemd/gitea.service): | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't include the full copy here, as it will become outdated at some point
``` | ||
|
||
And append the following code at the end of the file, [https://github.com/go-gitea/gitea/blob/master/contrib/supervisor/gitea](https://github.com/go-gitea/gitea/blob/master/contrib/supervisor/gitea): | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Don't include the full content only the link :)
Removed the code part. |
LGTM |
@mmarif4u Please help to fix the conflicts. |
Fixed the conflicts and merged. |
LGTM |
Added systemd service for Ubuntu 16.04 LTS.