Codebase list apertium-apy / debian/0.11.3-1 debian / apertium-apy.service
debian/0.11.3-1

Tree @debian/0.11.3-1 (Download .tar.gz)

apertium-apy.service @debian/0.11.3-1raw · history · blame

[Unit]
Description=Translation server and API for Apertium
Documentation=http://wiki.apertium.org/wiki/Apertium-apy
After=network.target

[Service]
# Change this to your username and edit to how you start apy:
User=apertium
ExecStart=/usr/bin/apertium-apy /usr/share/apertium/modes

# By default, if it restarts >10 times within 5 secs, it marks it as failed and gives up:
Restart=always

# Restart the service if it doesn't do a watchdog ping within 10 seconds:
WatchdogSec=10s

# No reason to have access to shared tmp files:
PrivateTmp=yes

[Install]
WantedBy=multi-user.target