20.01.2015

centos startup yacy

cd /etc/systemd/system
nano yacystart.service
__________________________
[Unit]
Description=YaCy search server
After=network.target

[Service]
Type=forking
ExecStart=/home/yacy/yacy/startYACY.sh
ExecStop=/home/yacy/yacy/stopYACY.sh

[Install]
WantedBy=multi-user.target

______________________________________
systemctl enable yacystart.service
systemctl start yacystart.service
systemctl stop yacystart.service
Quellen:
https://walterebert.com/blog/starting-yacy-boot-systemd/

Keine Kommentare:

Kommentar veröffentlichen