Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
197
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat << 'EOF' > /etc/systemd/system/aem-author.service
  2. [Unit]
  3. Description=Adobe Experience Manager 6.2 - Authoring Instance
  4. After=multi-user.target
  5. Requires=network.target
  6.  
  7. [Service]
  8. Type=simple
  9. ExecStart=/data/aem/author/crx-quickstart/bin/start
  10. ExecStop=/data/aem/author/crx-quickstart/bin/stop
  11. RemainAfterExit=yes
  12. User=aem
  13.  
  14. [Install]
  15. WantedBy=multi-user.target
  16. EOF
  17.  
  18. --------------------------------------------
  19.  
  20. mkdir /etc/systemd/system/aem-author.service.d/
  21.  
  22. --------------------------------------------
  23.  
  24. cat << 'EOF' > /etc/systemd/system/aem-author.service.d/aem.conf
  25. [Service]
  26. Environment="CQ_PORT=4502"
  27. Environment="CQ_RUNMODE=author,runmode1,runmode2,nosamplecontent"
  28. Environment="CQ_JVM_OPTS=-server -Djava.awt.headless=true -XX:+UseParallelOldGC -Djava.io.tmpdir=/tmp/aem/author/ -Xmx12g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/aem/dumps/author/ -XX:+PrintGCDateStamps -verbose:gc -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=20M -Xloggc:/data/aem/author/crx-quickstart/logs/gc.log"
  29. EOF
Advertisement
RAW Paste Data Copied
Advertisement