From 3d1dead13b5f3d7674b98a3f8684686d8fbc681e Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 12:47:30 +0200 Subject: Initial Systemd Service Run: 2/3 Signed-off-by: Georg --- systemd/gitea.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 systemd/gitea.service (limited to 'systemd/gitea.service') diff --git a/systemd/gitea.service b/systemd/gitea.service new file mode 100644 index 0000000..895f2f1 --- /dev/null +++ b/systemd/gitea.service @@ -0,0 +1,21 @@ +[Unit] +Description=Gitea (Git with a cup of tea) +After=syslog.target +After=network.target +Wants=mysqld.service +After=mysqld.service + +[Service] +RestartSec=2s +Type=simple +User=git +Group=git +WorkingDirectory=/var/lib/gitea/ + +ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini +Restart=always +Environment=USER=git HOME=/var/lib/git GITEA_WORK_DIR=/var/lib/gitea + +[Install] +WantedBy=multi-user.target + -- cgit v1.2.3