feat(docs): add service files

This commit is contained in:
Sam 2023-03-15 15:31:13 +01:00
parent 15109819df
commit 1344099d14
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,19 @@
[Unit]
Description=pronouns.cc data exporter service
After=syslog.target
After=network.target
Requires=postgresql.service redis.service
[Service]
RestartSec=2s
Type=simple
User=pronouns
Group=pronouns
AmbientCapabilities=
WorkingDirectory=/home/pronouns/src
ExecStart=/home/pronouns/src/pronouns exporter
Restart=always
Environment=USER=pronouns HOME=/home/pronouns
[Install]
WantedBy=multi-user.target