mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 03:11:51 +01:00
Merge pull request #477 from fanningert/dev
Intial commit for systemd support
This commit is contained in:
commit
d082e821a0
1 changed files with 18 additions and 0 deletions
18
scripts/systemd/gogs.service
Normal file
18
scripts/systemd/gogs.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Gogs (Go Git Service) server
|
||||||
|
After=syslog.target
|
||||||
|
After=network.target
|
||||||
|
#After=mysqld.service
|
||||||
|
#After=postgresql.service
|
||||||
|
#After=memcached.service
|
||||||
|
#After=redis.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=git
|
||||||
|
Group=git
|
||||||
|
ExecStart=/home/git/gogs/gogs/start.sh
|
||||||
|
WorkingDirectory=/home/git/gogs
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue