Ident2 est lancé en tant que daemon sur dyson
This commit is contained in:
parent
f34143dfa9
commit
d5dd1f3560
5 changed files with 85 additions and 3 deletions
|
@ -1,8 +1,15 @@
|
||||||
<Bundle name="identd" version="2.0">
|
<Bundle name="identd" version="2.0">
|
||||||
<Group name="wheezy">
|
<Group name="wheezy">
|
||||||
<Package name="ident2"/>
|
<Package name="ident2"/>
|
||||||
<Package name="openbsd-inetd"/>
|
<Group name="ident-daemon">
|
||||||
<Path name="/etc/inetd.conf"/>
|
<Path name="/etc/init.d/ident2"/>
|
||||||
<Service name="openbsd-inetd"/>
|
<Action name="link-ident2"/>
|
||||||
|
<Service name="ident2"/>
|
||||||
|
</Group>
|
||||||
|
<Group name="ident-daemon" negate="true">
|
||||||
|
<Package name="openbsd-inetd"/>
|
||||||
|
<Path name="/etc/inetd.conf"/>
|
||||||
|
<Service name="openbsd-inetd"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Bundle>
|
</Bundle>
|
||||||
|
|
64
Cfg/etc/init.d/ident2/ident2
Executable file
64
Cfg/etc/init.d/ident2/ident2
Executable file
|
@ -0,0 +1,64 @@
|
||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: ident2
|
||||||
|
# Required-Start:
|
||||||
|
# Required-Stop:
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: Start/Stop RFC 1413 ident2 daemon
|
||||||
|
# Description: The identd server provides a means to determine the identity
|
||||||
|
# of a user of a particular TCP connection. Given a TCP port
|
||||||
|
# number pair, it returns a character string which identifies
|
||||||
|
# the owner of that connection on the server's system.
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
|
DESC="RFC 1413 ident2 daemon"
|
||||||
|
NAME=ident2
|
||||||
|
DAEMON=/usr/sbin/$NAME
|
||||||
|
DAEMON_ARGS=""
|
||||||
|
PIDFILE=/var/run/identd/$NAME.pid
|
||||||
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
# Exit if the package is not installed
|
||||||
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
|
||||||
|
# Define LSB log_* functions.
|
||||||
|
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
RETVAL=0
|
||||||
|
|
||||||
|
start(){
|
||||||
|
log_begin_msg "Starting ident2 daemon."
|
||||||
|
/usr/sbin/ident2
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && touch /var/run/identd/ident2.pid
|
||||||
|
}
|
||||||
|
|
||||||
|
stop(){
|
||||||
|
log_begin_msg "Stopping ident2 daemon."
|
||||||
|
killproc ident2
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && rm -f /var/run/identd/ident2.pid
|
||||||
|
}
|
||||||
|
# See how we were called.
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start;
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
stop;
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
stop;
|
||||||
|
start;
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
log_success_msg "Usage: ident2 {start|stop}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $RETVAL
|
3
Cfg/etc/init.d/ident2/info.xml
Normal file
3
Cfg/etc/init.d/ident2/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<FileInfo>
|
||||||
|
<Info owner='root' group='root' perms='0755'/>
|
||||||
|
</FileInfo>
|
|
@ -89,6 +89,7 @@
|
||||||
<Group name="db-replicat"/>
|
<Group name="db-replicat"/>
|
||||||
<Group name="sniffer"/>
|
<Group name="sniffer"/>
|
||||||
<Group name="munin-server"/>
|
<Group name="munin-server"/>
|
||||||
|
<Group name="ident-daemon"/>
|
||||||
<Group name="vlan-wifi" />
|
<Group name="vlan-wifi" />
|
||||||
|
|
||||||
<Group name="https_cert" />
|
<Group name="https_cert" />
|
||||||
|
@ -625,6 +626,9 @@
|
||||||
<Bundle name="nginx" />
|
<Bundle name="nginx" />
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
<Group name="ident-daemon">
|
||||||
|
<Bundle name="identd"/>
|
||||||
|
</Group>
|
||||||
<!-- +==========+ -->
|
<!-- +==========+ -->
|
||||||
<!-- | Services | -->
|
<!-- | Services | -->
|
||||||
<!-- +==========+ -->
|
<!-- +==========+ -->
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
<!-- Règles concernant les serveurs avec identd //-->
|
<!-- Règles concernant les serveurs avec identd //-->
|
||||||
<Rules priority="1">
|
<Rules priority="1">
|
||||||
<Service type="deb" name="openbsd-inetd" status="on"/>
|
<Service type="deb" name="openbsd-inetd" status="on"/>
|
||||||
|
<Service type="deb" name="ident2" status="on"/>
|
||||||
|
<Action name="link-ident2" timing="post" when="modified" status="check"
|
||||||
|
command="update-rc.d ident2 defaults 45"/>
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue