Create a systemd service for YaCy


Create file /usr/lib/systemd/system/yacy.service and add this content:
[Unit]
Description=YaCy search server
After=network.target
Restart=always[Service]
Type=forking
User=yacy
ExecStart=/opt/yacy/startYACY.sh
ExecStop=/opt/yacy/stopYACY.sh
Restart=on-failure
RestartSec=1s[Install]
WantedBy=multi-user.target
Then use systemctl enable yacy.service.
Posted in Computing Notes | Tagged: Linux, systemd, yacy