Wednesday, August 24, 2011

start-stop-daemon script for Centos 5.!


tar -xvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
cd apps
cd sys-utils/start-stop-daemon-IR1_9_18-2/

cat Makefile
# comment this Two line for centos build.
#include $(AXIS_TOP_DIR)/tools/build/Rules.axis

PROG = start-stop-daemon

all: $(PROG)

install: all
        $(INSTALL) -m 0755 -o root -g root $(PROG) $(prefix)/sbin

        rm -f $(PROG)

-bash-3.2# make
cc     start-stop-daemon.c   -o start-stop-daemon
-bash-3.2# ls
a.out  Makefile  start-stop-daemon  start-stop-daemon.c

* Copy the daemon to bin path:
cp start-stop-daemon /usr/bin/

* How to Use this script Please see.


Renu said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city

Anjali Siva said...

Great collection and thanks for sharing this info with us. Waiting for more updates.
DevOps Training in Chennai
DevOps Certification in Chennai
AWS Training in Chennai
AWS course in Chennai
Cloud Computing Training in Chennai
Cloud Computing courses in Chennai
DevOps Training in Velachery
DevOps course in Chennai