summarylogtreecommitdiffstats
path: root/pentest-ghostwriter-graphql.service
blob: 8dba4fce368328169802591baf0dafcd49bf581d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Pentest Ghostwriter Hasura GraphQL engine (native stub)
After=network-online.target postgresql.service pentest-ghostwriter-web.service
Wants=network-online.target
ConditionPathExists=/etc/pentest-ghostwriter/pentest-ghostwriter.env
ConditionPathExists=/usr/bin/graphql-engine

[Service]
Type=simple
User=pentest-ghostwriter
Group=pentest-ghostwriter
EnvironmentFile=/etc/pentest-ghostwriter/pentest-ghostwriter.env
WorkingDirectory=/opt/pentest-ghostwriter/app
ExecStart=/usr/bin/graphql-engine serve
Restart=on-failure
RestartSec=5
StateDirectory=pentest-ghostwriter
LogsDirectory=pentest-ghostwriter
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/var/lib/pentest-ghostwriter /var/log/pentest-ghostwriter
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target