|
|
Quellcode |
1 2 |
haegar@pc-lau:~$ sudo avahi-daemon cap_set_proc() failed: Operation not permitted |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »bederf« (3. Dezember 2008, 07:47)
Benutzerinformationen überspringen
Ubuntu: 12.04
Kernel: 3.2.0-24-generic
Desktop: KDE
Architektur: 64-bit
Finde es heraus: http://wiki.ubuntuusers.de/AvahiHabt Ihr ne Ahnung, ob Handlungsbedarf besteht?
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: avahi
# Required-Start: $remote_fs dbus
# Required-Stop: $remote_fs dbus
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Avahi mDNS/DNS-SD Daemon
# Description: Zeroconf daemon for configuring your network
# automatically
### END INIT INFO
#set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Avahi mDNS/DNS-SD Daemon"
NAME="avahi-daemon"
DAEMON="/usr/sbin/$NAME"
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
# Include avahi-daemon defaults if available.
test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon
DISABLE_TAG="/var/run/avahi-daemon/disabled-for-unicast-local"
if [ -n "$AVAHI_DAEMON_START" ]; then
log_warning_msg "The AVAHI_DAEMON_START option in /etc/default/$NAME has been deprecated."
log_warning_msg "Please remove this setting from the configuration file."
log_warning_msg "To disable the service use a runlevel editor like sysv-rc-conf or bum instead."
fi
#
# Function that starts the daemon/service.
#
d_start() {
modprobe capability >/dev/null 2>&1 || true
$DAEMON -c && return 0
if [ -e ${DISABLE_TAG} ]; then
# Disabled because of the existance of an unicast .local domain
log_warning_msg "avahi-daemon disabled because there is a unicast .local domain"
exit 0;
fi;
$DAEMON -D
}
#
# Function that stops the daemon/service.
#
d_stop() {
if $DAEMON -c ; then
$DAEMON -k
fi
}
#
# Function that reload the config file for the daemon/service.
#
d_reload() {
$DAEMON -c && $DAEMON -r
}
#
#
# Function that stops the daemon/service.
#
d_stop() {
if $DAEMON -c ; then
$DAEMON -k
fi
}
#
# Function that reload the config file for the daemon/service.
#
d_reload() {
$DAEMON -c && $DAEMON -r
}
#
# Function that check the status of the daemon/service.
#
d_status() {
$DAEMON -c && echo "$DESC is running" || echo "$DESC is not running"
}
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
d_start
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
d_stop
log_end_msg $?
;;
reload)
log_daemon_msg "Reloading services for $DESC" "$NAME"
d_reload
|
Benutzerinformationen überspringen
Ubuntu: 12.04
Kernel: 3.2.0-24-generic
Desktop: KDE
Architektur: 64-bit
Aber selbst mit dem (gedachten) Rest sehe ich keine Probleme. Gut, da sind doppelte Einträge drin für stop und reload, macht aber nichts. Tja, da die Capabilities vorher recommended waren und sich da nichts geändert hat, dürfte ja die config deines Kernels so in etwa aussehen für den betreffenden Bereich:|
|
Quellcode |
1 2 3 |
CONFIG_SECURITY=y ... CONFIG_SECURITY_CAPABILITIES=y |

Burning Board, entwickelt von WoltLab GmbH.
UbuntuFreunde von Easyy-S und basslord seit 06.12.06
Ubuntufreunde.de runs on ubuntu 10.04





