From 9ed4154ff02f774b392a3ace12479ccb3707280a Mon Sep 17 00:00:00 2001 From: kueller Date: Tue, 20 Apr 2010 13:58:27 +0000 Subject: [PATCH] Anpassungen an neue upstart, und vorbereitung damit upstart default wird git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_xinetd@5513 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init/xinetd | 11 ----------- etc/init/xinetd.conf | 11 +++++++++++ init/genpkg | 32 +++++++++++++++++--------------- 3 files changed, 28 insertions(+), 26 deletions(-) delete mode 100644 etc/init/xinetd create mode 100644 etc/init/xinetd.conf diff --git a/etc/init/xinetd b/etc/init/xinetd deleted file mode 100644 index 816825c..0000000 --- a/etc/init/xinetd +++ /dev/null @@ -1,11 +0,0 @@ -# rc - runlevel compatibility -# -# This task guesses what the "default runlevel" should be and starts the -# appropriate script. - -start on started rpc -stop on stopping rpc - -console logged - -exec /usr/sbin/xinetd -filelog /var/log/xinetd.log -dontfork diff --git a/etc/init/xinetd.conf b/etc/init/xinetd.conf new file mode 100644 index 0000000..2ccd50a --- /dev/null +++ b/etc/init/xinetd.conf @@ -0,0 +1,11 @@ +description "Startup xinet daemon after rpc" +author "Harald Kueller " +version 1.0 +emits none special + +start on (runlevel [2345] and (started rpc)) +stop on (runlevel [S016] and (stopping rpc)) + +console none + +exec /usr/sbin/xinetd -filelog /var/log/xinetd.log -dontfork diff --git a/init/genpkg b/init/genpkg index ac513a8..836375d 100644 --- a/init/genpkg +++ b/init/genpkg @@ -30,19 +30,21 @@ # # -WDIR=`pwd` -cd etc/init.d -chmod 755 xinetd -mkdir rc{0,1,2,3,4,5,6}.d -for i in 0 1 2 6; do - cd rc$i.d - ln -s ../xinetd K75xinetd - cd .. -done -for i in 3 4 5; do - cd rc$i.d - ln -s ../xinetd S12xinetd - cd .. -done -cd $WDIR +if [ -d /var/install/sysvinit* ]; then + WDIR=`pwd` + cd etc/init.d + chmod 755 xinetd + mkdir rc{0,1,2,3,4,5,6}.d + for i in 0 1 2 6; do + cd rc$i.d + ln -s ../xinetd K75xinetd + cd .. + done + for i in 3 4 5; do + cd rc$i.d + ln -s ../xinetd S12xinetd + cd .. + done + cd $WDIR +fi ~