locksmith-newtonma.com


Main / Racing / Etc/init.d/functions

Etc/init.d/functions

Etc/init.d/functions

Name: Etc/init.d/functions

File size: 725mb

Language: English

Rating: 2/10

Download

 

/etc/init.d/functions. /etc/init.d/functions file contains functions to be used by most or all shell scripts stored in the /etc/init.d directory. The scripts in /etc/init.d directory are used to start, stop, or restart the Linux and UNIX system daemons. Debian and Ubuntu have /lib/lsb/init-functions ; SuSE has /etc/locksmith-newtonma.com ; none of them are compatible with the others. In fact, some distributions don't use /etc/init.d at all, or use it in an incompatible way (Slackware and Arch occur to me off the top of my head; there are others). It's the one that sources the file /etc/init.d/functions. This file is filled with simple but useful bash shell functions that are ready for use in your init.

I'm pretty sure I should be using the daemon function in /etc/rc.d/init.d/functions, but I can't find any documentation. Is it what I should be using. /etc/init.d/functions as referenced in supervisord's init script doesn't exist in all daemons. Ubuntu's version of this (certainly in ) is /lib/lsb/functions, but this doesn't contain the function daemon. It appears the easiest way to provide this functionality is to install the daemon package in ubuntu. initscriptsel7.x86_html, The inittab file and the /etc/init.d scripts, CentOS for x86_64, initscriptsel7.x86_rpm.

Each conforming init script shall source the file /lib/lsb/init-functions. The start_daemon, killproc and pidofproc functions shall use the following algorithm for. On 07/23/ AM, Bruno Costacurta wrote: > /etc/init.d/functions is missing. > How / where to grab it? /etc/init.d/functions is a Red Hat. ${INFO} boot_mesg "" ${NORMAL} read ENTER } check_script_status() { # $i is inherited by the rc script if [! -f ${i} ]; then boot_mesg "${i} is not a valid symlink. Some of this is covered here: locksmith-newtonma.com One aspect of that is to switch from sourcing /etc/init.d/functions.

More:

В© 2018 locksmith-newtonma.com