Skip to content

Commit 6c84223

Browse files
committed
scripts: remove meaningless script and modify systemd service
1 parent b447d18 commit 6c84223

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

scripts/start.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/systemd/gogs.service

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=Gogs (Go Git Service) server
2+
Description=Gogs (Go Git Service)
33
After=syslog.target
44
After=network.target
55
#After=mysqld.service
@@ -11,8 +11,10 @@ After=network.target
1111
Type=simple
1212
User=git
1313
Group=git
14-
ExecStart=/home/git/gogs/gogs/start.sh
1514
WorkingDirectory=/home/git/gogs
15+
ExecStart=/home/git/gogs/gogs web
16+
Restart=always
17+
Environment="USER=git","HOME=/home/git"
1618

1719
[Install]
1820
WantedBy=multi-user.target

0 commit comments

Comments
 (0)