Thanks to Jeff for pointing out how to fix this error with restarting udev during the install phase with LinuxMint.

I've attached a patch for your consideration based on 2.7 and tested on Ubuntu 10.04, LinuxMint 17.3 and Jeff tested on Debian 7 and 8..

More information about this at https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3

JT
From 632d104a598c3e035958faad850fcc9d7c446fb4 Mon Sep 17 00:00:00 2001
From: John Thornton <[email protected]>
Date: Tue, 23 Feb 2016 13:25:55 -0600
Subject: [PATCH] Interfacing with the initscript system from
 https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3 Maintainers
 should use the abstraction layer provided by the update-rc.d and invoke-rc.d
 programs to deal with initscripts in their packages' scripts such as
 postinst, prerm and postrm. Directly managing the /etc/rc?.d links and
 directly invoking the /etc/init.d/ initscripts should be done only by
 packages providing the initscript subsystem (such as sysv-rc and file-rc).

I made this change to fix a problem with LinuxMint. Thanks to Jeff for
finding the info for me and solving the problem.

Signed-off-by: John Thornton <[email protected]>
---
 debian/linuxcnc.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/linuxcnc.postinst b/debian/linuxcnc.postinst
index f97ce14..bfb761d 100755
--- a/debian/linuxcnc.postinst
+++ b/debian/linuxcnc.postinst
@@ -3,7 +3,7 @@ set -e
 
 #DEBHELPER#
 
-[ -x /etc/init.d/udev ] && /etc/init.d/udev restart
+invoke-rc.d udev restart
 
 if [ -f /etc/security/limits.conf ]; then
     if ! grep -q "EMC2" /etc/security/limits.conf; then
-- 
1.9.1

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to