summarylogtreecommitdiffstats
path: root/artalk.service
blob: 94adfcd7644dab7b999e3cd270aaa9c89f950e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=artalk
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=artalk
Group=artalk
AmbientCapabilities=CAP_NET_BIND_SERVICE
ConfigurationDirectory=artalk
StateDirectory=artalk
WorkingDirectory=/var/lib/artalk
ExecStart=/usr/bin/artalk server --config /etc/artalk/artalk.yml --workdir /var/lib/artalk
ExecStartPre=/bin/bash -c '[ -f /etc/artalk/artalk.yml ] || /usr/bin/artalk gen config /etc/artalk/artalk.yml'
Restart=on-failure

[Install]
WantedBy=multi-user.target