Skip to content

Instantly share code, notes, and snippets.

@krmnn
Created May 17, 2017 19:24
Show Gist options
  • Save krmnn/6fd0d3650bb526ca2660892724a27270 to your computer and use it in GitHub Desktop.
Save krmnn/6fd0d3650bb526ca2660892724a27270 to your computer and use it in GitHub Desktop.
A systemd service file for running gitea 1.1.1 on Debian Jessie
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=postgresql.service
# for fcgi appliance:
#After=memcached.service
[Service]
Type=simple
User=git
Group=git
WorkingDirectory=/home/git/gitea
ExecStart=/home/git/gitea/gitea web
Restart=always
Environment=USER=git HOME=/home/git
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment