uuidd.rc: drop on-demand mode from script
PATCH 1/2 uuidd.rc: drop on-demand mode from script
The on-demand mode was dropped from libuuid in commit ea4f8845f0241c7 "libuuid: don't exec uuidd"
You now need systemd (socket activation) to use
uuidd on demand.
Signed-off-by Andreas Henriksson <[email protected]>
--- misc-utils/uuidd.rc.in | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
misc-utils/uuidd.rc.in +1 -10
@@ -13,11 +13,6 @@ # set -e -# libuuid is able to execute the uuid daemon on-demand -- in such a case -# the daemon binary must be setuid to an unprivileged user (e.g. uuidd:uuidd). -# [-- kzak Jun 2009] -UUIDD_ON_DEMAND_ONLY="no" - PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/uuidd UUIDD_USER=uuidd
@@ -36,11 +31,7 @@ case "$1" in mkdir -p $UUIDD_DIR chown -R $UUIDD_USER:$UUIDD_GROUP $UUIDD_DIR fi - if test "$UUIDD_ON_DEMAND_ONLY" = yes; then - echo -n "(on demand only)" - else - start_daemon -p $PIDFILE $DAEMON - fi + start_daemon -p $PIDFILE $DAEMON log_end_msg $? ;; stop)
Signature · 1 line
2.0.0
PATCH 2/2 uuidd.rc: Requires remote_fs
The Debian package checking tool lintian thinks that the script is missing Requires on $remote_fs because it pokes at stuff under /usr and it's probably right.
Signed-off-by Andreas Henriksson <[email protected]>
--- misc-utils/uuidd.rc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
misc-utils/uuidd.rc.in +2 -2
@@ -1,8 +1,8 @@ #! /bin/sh -e ### BEGIN INIT INFO # Provides: uuidd -# Required-Start: $time $local_fs -# Required-Stop: $time $local_fs +# Required-Start: $time $local_fs $remote_fs +# Required-Stop: $time $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: uuidd daemon
Signature · 1 line
2.0.0
Re: [PATCH 2/2] uuidd.rc: Requires remote_fs
Quoted 2 lines · Andreas Henriksson
misc-utils/uuidd.rc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Karel Zak
maintainerQuoted 2 lines · Andreas Henriksson
misc-utils/uuidd.rc.in | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
Good catch! Applied, thanks.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com