Gogs is not runnig as service


#1

Hello every one! I make gogs installation like on this url:

root@gogs-vcs:/home/gogs/gogs# cat /etc/systemd/system/gogs.service
[Unit]
Description=Gogs git remote daemon
After=syslog.target
After=network.target
After=mariadb.service mysqld.service postgresql.service memcached.service redis.service

[Service]
Type=simple
User=gogs
Group=gogs
WorkingDirectory=/home/gogs/gogs
ExecStart=/home/gogs/gogs web -p 3000
Environment=USER=gogs HOME=/home/gogs

[Install]
WantedBy=multi-user.target

But if I run it from it dirrectory - gogs running without problems… What I doing wrong? Cant any one give me the right configs for systemd and app.ini ?
Thanks!


#2

I fix this error =)

Change this line:

ExecStart=/home/gogs/gogs web -p 3000

For this:

ExecStart=/home/gogs/gogs/gogs web -p 3000