start-stop-daemonã使ãã¨ãé©å½ãªããã°ã©ã ãç°¡åã«ãã¼ã¢ã³åã§ããããããããã¯ã°ã©ã¦ã³ãã§åä½ãããããPIDãã¡ã¤ã«ãèªåã§ä½ã£ãããã¦ããããããã ã§ããCentOSã§ã¯ä½¿ããªãã®ã§ã©ããããããªããã¨æã£ã¦ããããCã«ç§»æ¤ãããã¤ããã£ã¦ãRPMã®SPECãã¡ã¤ã«ã¾ã§ç¨æããã¦ããã(http://www.sssg.org/blogs/naoya/archives/1097) ããã使ãã°ãtig.rbãç°¡åã«ãã¼ã¢ã³åã§ããã #! /bin/bash pidfile=/var/run/tig.pid name="tig" prog="/home/mzp/daemons/tig/examples/tig.rb" SSD=/usr/sbin/start-stop-daemon start() { echo -n $"Starting $name: " $SSD
{{#tags}}- {{label}}
{{/tags}}