Skip to contentSkip to conversation

uuidd.rc: drop on-demand mode from script

PATCH Applied Andreas Henriksson 2 participants 4 messages Jul 11, 2014 – Jul 14, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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.

---
 misc-utils/uuidd.rc.in | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
misc-utils/uuidd.rc.in +1 -10
index 27b75c6..3c5528a 100644
@@ -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
#1 lore raw

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.

---
 misc-utils/uuidd.rc.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
misc-utils/uuidd.rc.in +2 -2
index 3c5528a..cebe228 100644
@@ -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
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] uuidd.rc: Requires remote_fs

In reply to Andreas Henriksson
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