[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

.dpkg-dist для конфигов которые я не менял



Переодически в системе возникают файлы .dpkg-dist для конфигов в которые я точно никогда не лазил и точно никогда не менял. Вот, например:

% diff -Naur /etc/init.d/gpm /etc/init.d/gpm.dpkg-dist
--- /etc/init.d/gpm	2018-06-23 23:28:40.459196798 +0300
+++ /etc/init.d/gpm.dpkg-dist	2017-08-19 12:40:43.000000000 +0300
@@ -13,7 +13,7 @@
 ### END INIT INFO
 #

-PIDFILE=/var/run/gpm.pid
+PIDFILE=/run/gpm.pid
 GPM=/usr/sbin/gpm
 CFG=/etc/gpm.conf

@@ -21,7 +21,7 @@

 . /lib/lsb/init-functions

-if [ "$(id -u)" != "0" ]
+if [ "$(id -u)" != "0" ] && [ "$1" != status ]
 then
   log_failure_msg "You must be root to start, stop or restart gpm."
   exit 1
@@ -93,8 +93,11 @@
      gpm_stop && sleep 3
      gpm_start || exit 1
      ;;
+  status)
+     status_of_proc $GPM gpm && exit 0 || exit $?
+     ;;
   *)
-     echo "Usage: /etc/init.d/gpm {start|stop|restart|force-reload|strace}"
+ echo "Usage: /etc/init.d/gpm {start|stop|restart|force-reload|strace|status}"
      exit 1
 esac

--
sergio.


Reply to: