#
# /etc/rc.d/init.d/gitea
#
-# Runs the Gogs Go Git Service.
-#
+# Runs the Gitea Git with a cup of tea.
#
-# chkconfig: - 85 15
+#
+# chkconfig: - 85 15
#
### BEGIN INIT INFO
GITEA_HOME=/home/git/gitea
GITEA_PATH=${GITEA_HOME}/$NAME
GITEA_USER=git
-SERVICENAME="Gogs Go Git Service"
+SERVICENAME="Gitea Git with a cup of tea"
LOCKFILE=/var/lock/subsys/gitea
LOGPATH=${GITEA_HOME}/log
LOGFILE=${LOGPATH}/gitea.log
#
# /etc/init.d/gitea
#
-# Runs the Gogs Go Git Service.
+# Runs the Gitea Git with a cup of tea.
#
### BEGIN INIT INFO
GITEA_HOME=/home/git/gitea
GITEA_PATH=${GITEA_HOME}/$NAME
GITEA_USER=git
-SERVICENAME="Go Git Service"
+SERVICENAME="Git with a cup of tea"
LOCKFILE=/var/lock/subsys/gitea
LOGPATH=${GITEA_HOME}/log
LOGFILE=${LOGPATH}/error.log
<dict>
<key>Label</key>
<string>io.gitea.web</string>
- <!-- assumes Gogs is running under 'git' account -->
+ <!-- assumes Gitea is running under 'git' account -->
<!-- modify below to reflect your settings -->
<key>UserName</key>
<string>git</string>
<string>git</string>
<key>ProgramArguments</key>
<array>
- <!-- assumes Gogs is installed in /Users/git/gitea -->
+ <!-- assumes Gitea is installed in /Users/git/gitea -->
<!-- modify below to reflect your settings -->
<string>/Users/git/gitea/gitea</string>
<string>web</string>
<true/>
<key>KeepAlive</key>
<true/>
- <!-- assumes Gogs is installed in /Users/git/gitea -->
+ <!-- assumes Gitea is installed in /Users/git/gitea -->
<!-- modify below to reflect your settings -->
<key>WorkingDirectory</key>
<string>/Users/git/gitea/</string>
<string>/Users/git/gitea/log/stdout.log</string>
<key>StandardErrorPath</key>
<string>/Users/git/gitea/log/stderr.log</string>
- <!-- default 256 is too low for Gogs needs using parallel pipes -->
+ <!-- default 256 is too low for Gitea needs using parallel pipes -->
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
[Unit]
-Description=Gogs (Go Git Service)
+Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
#After=mysqld.service
:: https://nssm.cc/download
:: This script itself should run in the gogs path, too.
:: In case of startup failure, please read carefully the log file.
-:: Make sure Gogs work running manually with "gogs web" before running
+:: Make sure Gitea work running manually with "gogs web" before running
:: this script.
:: And, please, read carefully the installation docs first:
:: https://gogs.io/docs/installation
:: To unistall the service, run "nssm remove gogs" and restart Windows.
-:: Set the folder where you extracted Gogs. Omit the last slash.
+:: Set the folder where you extracted Gitea. Omit the last slash.
SET gogspath=C:\gogs
nssm install gogs "%gogspath%\gogs.exe"
nssm set gogs AppParameters "web"
nssm set gogs Description "A painless self-hosted Git service."
-nssm set gogs DisplayName "Gogs - Go Git Service"
+nssm set gogs DisplayName "Gitea - Git with a cup of tea"
nssm set gogs Start SERVICE_DELAYED_AUTO_START
nssm set gogs AppStdout "%gogspath%\gogs.log"
nssm start gogs