summaryrefslogtreecommitdiff
path: root/startYACY.sh
AgeCommit message (Collapse)Author
2026-07-10We migrate to JDK 17Michael Peter Christen
This is a hard requirement to be able to migrate to a more recent jetty version, which may happen sometime soon.
2026-04-20fix: ignore comment lines when reading yacy.conf keys in startYACY.sh (#736)Leo
Previously grep matched commented-out keys like '#javastart_Xmx=512m' alongside the active one, causing invalid JVM args and a cryptic 'Error: Could not find or load main class' failure on Docker start. All three conf key reads (javastart_Xmx, javastart_priority, port) now pipe through 'grep -v '^\s*#'' before key-matching.
2026-01-11Update startYACY.shAckroydAI
Guidance for editing crontab
2025-03-22Remove deprectated JAVA_ARGSThomas Merkel
Both JAVA_ARGS are obsolete since JDK14 and expired in JDK15. They are no longer work on modern illumos (SunOS) distributions. Additonal the comment mention Darwin which is not SunOS.
2024-12-13if java executable not found using 'which', try to use 'command'okybaca
2024-07-21replaced http links with httpsMichael Peter Christen
2023-09-27apply patches from @HenryLoenwindJoel Strasser
2022-02-03changed link to new forum locationMichael Peter Christen
2021-08-05addressing better GC behavior after removing Xms with earlier heap increase ↵Michael Peter Christen
strategy
2021-08-03fixed doku linkMichael Peter Christen
2021-07-19removed Xms java memory startup parameterMichael Peter Christen
We will use the default value for now on. This is much better for resource economy and fits better into a container/docker/kubernetes strategy. Furthermore, a small memory footprint is essential for the usage on small devices like RaspberryPi.
2020-01-20fix case esac in start.shsgaebel
2020-01-17Start script run on FreeBSD and likely other BSDsStaff Silence
Fix to make start script run on FreeBSD that i used, likely applies to dragonfly, trueos and possibly netbsd- but unable to test.
2019-06-15fixed many links to old forum, now https://searchlab.euMichael Christen
2019-04-14Made SNI extension user configurable without the need for server restartluccioman
TLS Server Name Indication (SNI) extension activation can now be configured with the new Settings_p.html?page=httpClient administration page. SNI extension is also now enabled by default, as in 2019 the unrecognized_name(112) alert is more properly handled by major web servers TLS implementations, following the RFC 6066 standard. Related YaCy issues : #153 #189 and #272 JDK 1.7 bug : https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7127374 Apache httpd issue : https://bz.apache.org/bugzilla/show_bug.cgi?id=56241 RFC 6066 : https://tools.ietf.org/html/rfc6066#section-3
2019-01-26Fixed shell start script failure on missing memory settings in conf fileluccioman
Before that fix, the startYACY.sh failed when the javastart_Xmx or javastart_Xms configuration keys were missing for some reason from yacy.conf file, with the error "Unrecognized option: - Error: Could not create the Java Virtual Machine."
2019-01-14Properly read configured memory settings when using a custom data pathluccioman
Fixes issue #269
2018-08-30Made possible to provide an absolute data root path for start scriptluccioman
Previously, only a path relative to the user home folder could be provided
2018-04-17Added a start script option to run as a foreground process without JMXluccioman
Contrary to the -d/--debug option which opens the 9999 port thus allowing remote monitoring with JVM tools such as JConsole.
2016-12-31Fixed docker stop behavior.luccioman
- Adjusted start script in debug mode to make sure the main java process can receive signals such as SIGTERM - Modified docker images main command to properly propagate SIGTERM signal to the main java process
2016-09-03Fixed options processing for Mac OSluccioman
- getopt is BSD style and does not support long options - fixed typing error inparameter value extracting for all platforms
2016-09-02Fix for startup optionluccioman
- Var initialization - Declaration in getopt
2016-09-02Explicitely set YaCy data folder when starting in MacOS bundleluccioman
2016-02-28harmonize classpath with startYaCy.batreger
(with servlet classloader no need for htroot in system classpath)
2015-07-29move java environment parameter setting disabling SNI (Server Name ↵reger
Indicator) support for https connections from code to startup script allowing admin to ~easy/transparent alter the YaCy default FALSE setting. Background: some user report problem with connecting/crawling some sites via https which require SNI support (by default switched off in YaCy). On the other hand systems not demanding SNI support are sometimes not properly configured and due to a bug/feature in java 1.7 connection is aborted. The later is more often the case, so the default is still fine. With the java start parameter expert user can no alter the startparameter to -Djsse.enableSNIExtension=true (java default) if they crawl more hosts requiring SNI support. The alternative to let YaCy try both during https handshake (deep inside the httpclient) is not pursut at this time.
2015-02-25Next try to fix start script for OpenBSD.Marc Nause
2015-02-23Changes to improve compatibility with OpenBSD. (seeMarc Nause
http://forum.yacy-websuche.de/viewtopic.php?f=8&t=5503)
2015-01-30Added & in start script for *NIX which was lost a few commits ago.Marc Nause
2015-01-23fix for shell scriptMichael Peter Christen
2015-01-23replaced old JavaApplicationStub for Mac Application framework with newMichael Peter Christen
script. Adopted the YaCyApp environment and fixed a problem in the startYACY.sh application wrapper which caused wrong usage of logging option -l which caused that files had been written to the YaCy application folder. As a result of this fix, it is not necessary any more to change path settings in Info.plist if libraries are changed.
2014-09-30large IPv6 redesign of peer ping methods!Michael Peter Christen
removed preferred IPv4 in start options and added a new field IP6 in peer seeds which will contain one or more IPv6 addresses. Now every peer has one or more IP addresses assigned, even several IPv6 addresses are possible. The peer-ping process must check all given and possible IP addresses for a backping and return the one IP which was successful when pinging the peer. The ping-ing peer must be able to recognize which of the given IPs are available for outside access of the peer and store this accordingly. If only one IPv6 address is available and no IPv4, then the IPv6 is stored in the old IP field of the seed DNA. Many methods in Seed.java are now marked as @deprecated because they had been used for a single IP only. There is still a large construction site left in YaCy now where all these deprecated methods must be replaced with new method calls. The 'extra'-IPs, used by cluster assignment had been removed since that can be replaced with IPv6 usage in p2p clusters. All clusters must now use IPv6 if they want an intranet-routing.
2014-08-25Fix for http://mantis.tokeek.de/view.php?id=432Marc Nause
*) replaced all shebangs with more universal versions
2014-01-18removed -d64 jvm option because that causes problems on non-64 bitorbiter
linux, see http://bugs.yacy.net/view.php?id=349 and http://bugs.yacy.net/view.php?id=339
2013-12-19removed non-root restriction in startYACY.sh because that is also notMichael Peter Christen
applied for the debian version. There is no reason to apply this restriction. Added also the -d64 option if the system is 64 bit.
2013-07-27reverted start script options - yacy on windows did not start with theorbiter
given values
2013-01-21Reverted setting of MMapDirectoryFactory from solrconfig; seeMichael Peter Christen
http://forum.yacy-websuche.de/viewtopic.php?p=27509#p27509 Instead, in the start script is checked if the host is a 64 host and -Dsolr.directoryFactory=solr.MMapDirectoryFactory is set as java option Reverted the ramBufferSizeMB setting (this was not enabled anyway) because that may be too much memory for small peers and embedded systems. Activated the mergeFactor 4; this was commented out by mistake
2012-06-19enable asserts only with debuggingMichael Peter Christen
2011-11-24bring my master to stuff from remotesixcooler
2011-11-14custom start-scriptsixcooler
2011-08-31bugfixes in html parserorbiter
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7912 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-07-03setting startup options:orbiter
-Xss256k and -XX:ReservedCodeCacheSize=1024m after appearance of a malloc error together with a crash of the jvm which stated at the end of the log: # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate # Possible reasons: # The system is out of physical RAM or swap space # In 32 bit mode, the process size limit was hit # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Use 64 bit Java on a 64 bit OS # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= this follows the last two points in the list of recommendations. To set appropriate values the default values from http://www.oracle.com/technetwork/java/hotspotfaq-138619.html and http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html had been considered git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7823 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-06-30added "-XX:MaxPermSize=256m" to start scriptorbiter
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7810 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-01-28changed the default port from 8080 to 8090orbiter
see also: http://forum.yacy-websuche.de/viewtopic.php?p=21683#p21683 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7454 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-11-05release 0.99orbiter
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7309 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-09-07- replaced pdfbox and fontbox version 1.1.0 with 1.2.1orbiter
- added some clear statements that shall clear static cache size within the pdfbox library - the pdfbox library contains a memory leak; it is unsafe to run a peer with pdf parser permanently on. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7120 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-09-05using -XX:-UseGCOverheadLimit when starting java.orbiter
see also: http://forum.yacy-websuche.de/viewtopic.php?p=20709#p20709 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7108 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-09-03fixed a problem with restarts in YaCy mac applications: the DATA directory ↵orbiter
path was not submitted when doing a restart. This solves the problem by: - storing the startup properties when yacy is started - using the properties in the restart-script again. this transports also the DATA directory location as parameter of the -gui option that is used when the Mac version of YaCy is started git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7102 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-09-03better utf-8 support everywhere using a default utf-8 encoding for all ↵orbiter
string conversions. todo: add this also for debian start script (how do I do that?) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7098 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-08-27adapted memory for first run to current standard valueslotus
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7079 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-08-05added a very early test version of a YaCy gui component.orbiter
The gui currently does nothing else than providing a search window that sends the search string to the browser The gui is started when YaCy is started with the option -g or --gui, like ./startYACY.sh -g The gui will primary be used to provide a 'real' macintosh version that can be started and operated like any other macintosh application. A special mac application wrapper will follow. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7021 6c8d7289-2bf4-0310-a012-ef5d649a1542