/lib/systemd/system/apertium-apy.service is in apertium-apy 0.9.1~r343-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | [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
WorkingDirectory=/usr/share/apertium-apy
ExecStart=/usr/bin/python3 servlet.py /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
|