Tag Archives: init

[init]rsync

#! /bin/bash

start() {
        /usr/bin/rsync --daemon &
}

stop() {
        kill `cat /var/run/rsyncd.pid`
}       

restart() {
        stop[......]

Read more

[init]nginx

包含了php-fpm进程的启动与关闭

#!/bin/sh
#
# nginx        Startup script for nginx
#
# chkconfig: - 85 15
# processname: nginx
# config: /opt/program/nginx/conf/n[......]

Read more

[init]saslauthd

#! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which ha[......]

Read more

[init]postfix

#!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the prog[......]

Read more

[init]dovecot

### BEGIN INIT INFO
# Provides:          dovecot
# Required-Start:    $local_fs $remote_fs $network $syslog $time
# Required-Stop:     $local_fs $remo[......]

Read more

[init]dkim-milter

#!/bin/bash
#
# /etc/init.d/dkim-milter
#
# chkconfig:   - 79 21
# description: DomainKeys Identified Mail Milter
# processname: dkim-filter
# config:[......]

Read more

[init]Vsftpd

#!/bin/bash
#
### BEGIN INIT INFO
# Provides: vsftpd
# Required-Start: $local_fs $network $named $remote_fs $syslog
# Required-Stop: $local_fs $networ[......]

Read more

[init]Svnserve

#!/bin/bash
#
# svnserve        Startup script for the Subversion svnserve daemon
#
# chkconfig: - 85 15
# description: The svnserve daemon allows acc[......]

Read more

[init]Mysqld

#!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQ[......]

Read more

[init]Httpd

#!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient an[......]

Read more