亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 9750 | 回復(fù): 0
打印 上一主題 下一主題

script for systemd [復(fù)制鏈接]

論壇徽章:
1
水瓶座
日期:2014-03-20 18:21:14
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2016-09-09 11:27 |只看該作者 |倒序瀏覽
  1. $ ls -l /usr/lib/systemd/system/postgresql-9.4.service
  2. -rw-r--r--. 1 root root 1628 Aug 11 08:02 /usr/lib/systemd/system/postgresql-9.4.service
復(fù)制代碼
  1. # It's not recommended to modify this file in-place, because it will be
  2. # overwritten during package upgrades.  If you want to customize, the
  3. # best way is to create a file "/etc/systemd/system/postgresql-9.4.service",
  4. # containing
  5. #        .include /lib/systemd/system/postgresql-9.4.service
  6. #        ...make your changes here...
  7. # For more info about custom unit files, see
  8. # http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F

  9. # Note: changing PGDATA will typically require adjusting SELinux
  10. # configuration as well.

  11. # Note: do not use a PGDATA pathname containing spaces, or you will
  12. # break postgresql-setup.
  13. [Unit]
  14. Description=PostgreSQL 9.4 database server
  15. After=syslog.target
  16. After=network.target

  17. [Service]
  18. Type=forking

  19. User=postgres
  20. Group=postgres

  21. # Note: avoid inserting whitespace in these Environment= lines, or you may
  22. # break postgresql-setup.

  23. # Location of database directory
  24. Environment=PGDATA=/var/lib/pgsql/9.4/data/

  25. # Where to send early-startup messages from the server (before the logging
  26. # options of postgresql.conf take effect)
  27. # This is normally controlled by the global default set by systemd
  28. # StandardOutput=syslog

  29. # Disable OOM kill on the postmaster
  30. OOMScoreAdjust=-1000

  31. ExecStartPre=/usr/pgsql-9.4/bin/postgresql94-check-db-dir ${PGDATA}
  32. ExecStart=/usr/pgsql-9.4/bin/pg_ctl start -D ${PGDATA} -s -w -t 300
  33. ExecStop=/usr/pgsql-9.4/bin/pg_ctl stop -D ${PGDATA} -s -m fast
  34. ExecReload=/usr/pgsql-9.4/bin/pg_ctl reload -D ${PGDATA} -s

  35. # Give a reasonable amount of time for the server to start up/shut down
  36. TimeoutSec=300

  37. [Install]
  38. WantedBy=multi-user.target
復(fù)制代碼



您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP