[Bug 1599446] [NEW] 16.04, wrong units start order

sles 1599446 at bugs.launchpad.net
Wed Jul 6 09:47:41 UTC 2016


Public bug reported:

Hello!

squid uses ldap and mysql for authorization , so I added them to squid
dependencies:

### BEGIN INIT INFO
# Provides:          squid
# Required-Start:    $network $remote_fs $syslog mysql slapd


After=systemd-journald.socket basic.target systemd-journald-dev-log.socket mysql.service remote-fs.target network-online.target nss-lookup.target system.slice sysinit.target slapd.service


And symlinks are created in right order:

S03slapd
S04mysql
S05squid

But really squid is started before mysql (mariadb) and slapd are
started:

journalctl -u squid
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:44:41 SAMT. --
июл 06 13:10:31 inetgw2 systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x...

journalctl -u slapd
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:36 SAMT. --
июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...

journalctl -u mysql
-- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:46 SAMT. --
июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
июл 06 13:10:43 inetgw2 mysql[2647]:  * Starting MariaDB database server mysqld


i.e. real start order is:
sqiud
slapd
mysql

Expected result is folowing
slapd
mysql
squid

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1599446

Title:
  16.04, wrong units start order

Status in systemd package in Ubuntu:
  New

Bug description:
  Hello!

  squid uses ldap and mysql for authorization , so I added them to squid
  dependencies:

  ### BEGIN INIT INFO
  # Provides:          squid
  # Required-Start:    $network $remote_fs $syslog mysql slapd

  
  After=systemd-journald.socket basic.target systemd-journald-dev-log.socket mysql.service remote-fs.target network-online.target nss-lookup.target system.slice sysinit.target slapd.service


  And symlinks are created in right order:

  S03slapd
  S04mysql
  S05squid

  But really squid is started before mysql (mariadb) and slapd are
  started:

  journalctl -u squid
  -- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:44:41 SAMT. --
  июл 06 13:10:31 inetgw2 systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x...

  journalctl -u slapd
  -- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:36 SAMT. --
  июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...

  journalctl -u mysql
  -- Logs begin at Ср 2016-07-06 13:10:30 SAMT, end at Ср 2016-07-06 13:45:46 SAMT. --
  июл 06 13:10:42 inetgw2 systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
  июл 06 13:10:43 inetgw2 mysql[2647]:  * Starting MariaDB database server mysqld

  
  i.e. real start order is:
  sqiud
  slapd
  mysql

  Expected result is folowing
  slapd
  mysql
  squid

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1599446/+subscriptions



More information about the foundations-bugs mailing list