|
|
@ -10,13 +10,13 @@ After=network.target |
|
|
|
#LimitMEMLOCK=infinity |
|
|
|
#LimitMEMLOCK=infinity |
|
|
|
#LimitNOFILE=65535 |
|
|
|
#LimitNOFILE=65535 |
|
|
|
Type=simple |
|
|
|
Type=simple |
|
|
|
User=root |
|
|
|
User=git |
|
|
|
Group=root |
|
|
|
Group=git |
|
|
|
WorkingDirectory={$SERVER_PATH}/gogs |
|
|
|
WorkingDirectory={$SERVER_PATH}/gogs |
|
|
|
ExecStart={$SERVER_PATH}/gogs/gogs web |
|
|
|
ExecStart={$SERVER_PATH}/gogs/gogs web |
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID |
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID |
|
|
|
Restart=always |
|
|
|
Restart=always |
|
|
|
Environment=USER=root HOME=/root |
|
|
|
Environment=USER=git HOME=/home/git |
|
|
|
|
|
|
|
|
|
|
|
# Some distributions may not support these hardening directives. If you cannot start the service due |
|
|
|
# Some distributions may not support these hardening directives. If you cannot start the service due |
|
|
|
# to an unknown option, comment out the ones not supported by your version of systemd. |
|
|
|
# to an unknown option, comment out the ones not supported by your version of systemd. |
|
|
|