????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.221 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info_silent/ |
Upload File : |
#!/bin/sh set -e now=`date +%Y%m%dT%H%M` logdir=/var/lib/insserv logfile="$logdir/run-$now.log" # Make sure insserv is in path PATH=/sbin:$PATH # Based on code from dash postinst check_divert() { package=insserv div=$(dpkg-divert --list $2) distrib=${4:-$2.distrib} case "$1" in false) if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then mv $distrib $2 dpkg-divert --package $package --remove $2 fi ;; status) # Return true if the divert is in effect if [ -n "$div" ] && [ -z "${div%%*by $package}" ]; then : else false fi esac } convert_rc_s_to_k() { runlevel=$1 for link in $(cd $target/etc/rc$runlevel.d; ls S* || true); do set `echo $link|sed "s%S\(..\)\(.*\)%\1 \2%"` seq=$1 service=$2 mv $target/etc/rc$runlevel.d/$link $target/etc/rc$runlevel.d/K$seq$service done } legacy_bootordering() { for f in /etc/rc0.d/S* ; do if [ -f $f ] ; then return 0 fi done return 1 } activate_insserv() { echo "info: Reordering boot system, log to $logfile" 1>&2 ( echo "info: Converting rc0.d/S* and rc6.d/S* to K*." 1>&2 convert_rc_s_to_k 0 convert_rc_s_to_k 6 echo "info: running insserv" 1>&2 insserv -v ) > $logfile 2>&1 || return 1 # Indicate that system is no longer using the legacy ordering rm $flagfile return 0 } case "$1" in configure) if check_divert status /usr/sbin/update-rc.d \ /usr/sbin/update-rc.d-insserv ; then check_divert false /usr/sbin/update-rc.d \ /usr/sbin/update-rc.d-insserv fi # Disabled in Ubuntu until LSB-capable init scripts are restored (via # debhelper 9.20120909ubuntu2). # if dpkg --compare-versions "$2" lt "2.88dsf-23"; then # rm -f /etc/init.d/.legacy-bootordering # fi # if legacy_bootordering ; then if false; then # Still using legacy ordering, try to convert if activate_insserv ; then echo "success: Enabled dependency based boot system." 1>&2 else echo "error: Something failed while migrating." 1>&2 cat 1>&2 <<EOF error: Unable to migrate to dependency based boot sequencing. See http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for more information about dependency based boot sequencing. To reattempt the migration process run 'dpkg --configure sysv-rc'. EOF exit 1; fi fi ;; *) ;; esac