GOGS自动启动





创建文件名/lib/systemd/system/gogs.service


内容



[Unit]  
Description=gogs  
After=network.target  
  
[Service]  
Type=forking  
ExecStart=/home/git/gogs/scripts/init/debian/gogs start  
ExecReload=/home/git/gogs/scripts/init/debian/gogs restart  
ExecStop=/home/git/gogs/scripts/init/debian/gogs  stop  
PrivateTmp=true  
  
[Install]  
WantedBy=multi-user.target








最后运行 service gogs start

你可能感兴趣的:(GOGS自动启动)