xoxys.gitea/templates/etc/systemd/system/gitea.service.j2

21 lines
537 B
Plaintext
Raw Permalink Normal View History

2019-08-27 08:39:46 +02:00
{{ ansible_managed | comment }}
2018-12-08 22:21:48 +01:00
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
Type=simple
2018-12-09 00:53:24 +01:00
Environment=USER={{ gitea_user }}
2018-12-09 20:53:39 +01:00
Environment=HOME={{ gitea_user_home }}
2018-12-09 00:53:24 +01:00
Environment=GITEA_WORK_DIR={{ gitea_base_dir }}
2018-12-08 22:21:48 +01:00
User={{ gitea_user }}
Group={{ gitea_group }}
WorkingDirectory={{ gitea_base_dir }}
2022-08-07 23:39:44 +02:00
ExecStart={{ gitea_base_dir }}/gitea-latest web -c {{ gitea_config_dir }}/app.ini -P {{ gitea_run_dir }}/gitea.pid
2018-12-09 00:53:24 +01:00
Restart=on-failure
2018-12-08 22:21:48 +01:00
PrivateTmp=yes
[Install]
WantedBy=multi-user.target