Activity-Relay/misc/dist/init/relay-api.service

27 lines
608 B
Desktop File

# relay-api.service
#
# For using YUKIMOCHI Activity-Relay.
#
# See https://github.com/yukimochi/Activity-Relay/wiki for instructions.
[Unit]
Description=YUKIMOCHI Activity-Relay API Server
Documentation=https://github.com/yukimochi/Activity-Relay/wiki
After=network.target network-online.target
Requires=network-online.target
[Service]
Type=simple
User=relay
Group=relay
ExecStart=/usr/bin/relay --config /var/lib/relay/config.yml server
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target