{"action":"closed","issue":{"url":"https://api.github.com/repos/ngircd/ngircd/issues/97","labels_url":"https://api.github.com/repos/ngircd/ngircd/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ngircd/ngircd/issues/97/comments","events_url":"https://api.github.com/repos/ngircd/ngircd/issues/97/events","html_url":"https://github.com/ngircd/ngircd/issues/97","id":66866706,"number":97,"title":"ngircd.init for CentOS","user":{"login":"alexbarton","id":174961,"avatar_url":"https://avatars.githubusercontent.com/u/174961?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbarton","html_url":"https://github.com/alexbarton","followers_url":"https://api.github.com/users/alexbarton/followers","following_url":"https://api.github.com/users/alexbarton/following{/other_user}","gists_url":"https://api.github.com/users/alexbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbarton/subscriptions","organizations_url":"https://api.github.com/users/alexbarton/orgs","repos_url":"https://api.github.com/users/alexbarton/repos","events_url":"https://api.github.com/users/alexbarton/events{/privacy}","received_events_url":"https://api.github.com/users/alexbarton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ngircd/ngircd/labels/bug","name":"bug","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T12:02:02Z","updated_at":"2015-04-07T12:02:04Z","closed_at":"2015-04-07T12:02:04Z","body":"(Report imported from Bugzilla #97)\n\nStatus CLOSED, severity *normal*, in component *Contrib*.\nReported in version *unspecified* on platform *other*.\nAssigned to: Virtual ngIRCd Bug Manager.\n\nOn 2009-05-05 15:52:42 +0200, Naoya Nakazawa wrote:\n\n> I attached ngircd.init for CentOS 5.x. It works on CentOS 5.3.\n> \n> \n> #!/bin/sh\n> #\n> # ngIRCd start and stop script for Debian-based systems\n> # Copyright 2008,2009 Alexander Barton <alex@barton.de>\n> #\n> # chkconfig: - 25 01\n> # description: ngIRCd is an Open Source server for \\\n> #              the Internet Relay Chat (IRC), which \\\n> #              is developed and published under \\\n> #              the terms of the GNU General Public\n> #              Licence (URL: http://www.gnu.org/licenses/gpl.html). \\\n> #              ngIRCd means \"next generation IRC daemon\", \\\n> #              it's written from scratch and not deduced from the \\\n> #              \"grandfather of IRC daemons\", the daemon of the IRCNet.\n> #\n> # processname: /usr/sbin/ngircd\n> # config: /etc/ngircd\n> # pidfile: /var/run/ngircd.pid\n> \n> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n> DAEMON=/usr/sbin/ngircd\n> NAME=ngIRCd\n> BASENAME=ngircd\n> CONF=/etc/$BASENAME.conf\n> DESC=\"IRC daemon\"\n> PARAMS=\"-f $CONF\"\n> \n> # Source function library.\n> . /etc/init.d/functions\n> \n> # Get config.\n> test -f /etc/sysconfig/network && . /etc/sysconfig/network\n> test -f /etc/sysconfig/makuosan && . /etc/sysconfig/makuosan\n> \n> \n> # Check that networking is up.\n> [ \"${NETWORKING}\" = \"yes\" ] || exit 0\n> \n> [ -x $DAEMON ] || exit 1\n> [ -f $CONF ] || exit 2\n> \n> RETVAL=0\n> \n> start(){\n>     echo -n $\"Starting $NAME: \"\n>     daemon $DAEMON $PARAMS\n>     RETVAL=$?\n>     [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$BASENAME\n>     echo\n>     return $RETVAL\n> }\n> \n> stop(){\n>     echo -n $\"Stopping $NAME: \"\n>     killproc $DAEMON\n>     RETVAL=$?\n>     if [ $RETVAL -eq 0 ] ; then\n>         rm -f /var/lock/subsys/$BASENAME\n>     fi\n>     echo\n>     return $RETVAL\n> }\n> \n> reload(){\n>     echo -n $\"Reloading configuration: \"\t\n>     killproc $DAEMON -HUP\n>     RETVAL=$?\n>     echo\n>     return $RETVAL\n> }\n> \n> restart(){\n>     stop\n>     start\n> }\n> \n> condrestart(){\n>     [ -e /var/lock/subsys/$BASENAME ] && restart\n>     return 0\n> }\n> \n> check_config(){\n>      $DAEMON $PARAMS --configtest >/dev/null 2>&1\n>      [ $? -eq 0 ] && return 0\n> \n>      echo -n $\"Configuration of $NAME is not valid, won't (re)start!\"\t\n>      echo -n $\"Run \\\"$DAEMON --configtest\\\" and fix it up ...\"\t\n>      exit 6\n> }\n> \n> \n> # See how we were called.\n> case \"$1\" in\n>     start)\n>         check_config\n> \tstart\n> \t;;\n>     stop)\n> \tstop\n> \t;;\n>     status)\n> \tstatus $NAME\n> \t;;\n>     restart)\n> \trestart\n> \t;;\n>     reload)\n> \treload\n> \t;;\n>     condrestart)\n> \tcondrestart\n> \t;;\n>     test)\n>         check_config\n>         ;;\n>     *)\n> \techo $\"Usage: $0 {start|stop|status|restart|condrestart|reload|test}\"\n> \tRETVAL=1\n> esac\n> \n> exit $RETVAL\n\nOn 2009-05-05 17:27:21 +0200, Alexander Barton wrote:\n\n> I included your script in ngIRCd 14.1 (which has been/will be released today) as \"contrib/ngircd-\n> redhat.init\".\n> \n> Thanks a lot, Naoya!\n\nOn 2009-05-19 23:13:27 +0200, Alexander Barton wrote:\n\n> This new init script is included in ngIRCd release 14.1 as \"contrib/ngircd-\n> redhat.init\".\n\n"}}