Professional Documents
Culture Documents
walterebert.com/blog/starting-yacy-boot-systemd
29 July 2014
29 July 2014
YaCy is a self-hosted web search engine, that can be used to index web pages. It can also
be used as an intranet search appliance. For example, it has been used to index content
from the 30C3 Conference. An unique feature is that YaCy can be run as a decentralised
peer-to-peer network. You can install it on your desktop computer (Windows, Mac,
Linux) and make it available to the YaCy network.
Of course, you also can run it on a server. If you are running a Linux server and you want
to automatically start YaCy on boot you have to add it to systemd. Most Linux
distributions use systemd (or will start using it in the upcoming major release).
You probably do not want to run YaCy as root, so first add a new user. Use --system to
create an system account without login:
sudo adduser --system yacy
1/2
Unpack the downloaded file:
tar -xvf yacy_v1.72_20140506_9000.tar.gz
Be sure Java is already installed on your server. Test if YaCy will start:
cd yacy
./startYACY.sh
[Unit]
Description=YaCy search server
After=network.target
[Service]
Type=forking
User=yacy
ExecStart=/home/yacy/yacy/startYACY.sh
ExecStop=/home/yacy/yacy/stopYACY.sh
[Install]
WantedBy=multi-user.target
Type forking is required to run scripts. The systemd path may be different, depending on
your distribution.
[update]
If you get a message like: Failed to issue method call: Invalid argument
Try: sudo systemctl enable yacy.service
2/2